Command Line interface (CLI)

learn more… | top users | synonyms (2)

-3
votes
3answers
3k views

How to find files of certain extension and tar each of them in to another location

I have script for finding files of certain type and compress them to a single tar archive and put in to other place. But now, there is a change in requirement, that I need to find files of certain ...
1
vote
1answer
746 views

Pentaho Windows Batch file not running when executed on Windows Server 2008

I'm running a Pentaho Kettle Kitchen batch scripts on Windows Server 2008. When I launch the batch file, the Windows Command prompt pops up and then disappears. I've changed all files in the folders ...
1
vote
1answer
83 views

FOR works at prompt, but not in script file?

As part of a task that I am working on for a customer, I need to make some modifications to the enterprise logon script. Windows command-line is definitely not my area of expertise, but I am doing OK ...
2
votes
1answer
3k views

How to Extract command-line output into a Variable?

As part of a task that I am working on for a customer, I need to make some modifications to the enterprise logon script. Windows command-line is definitely not my area of expertise, but I am doing OK ...
1
vote
2answers
750 views

How can you add a command line test to Jenkins that reads the exit code?

I want to add a command line script to Jenkins as part of the build process. This command line script will exit with an error code of 0 if things where successful or 666 if it fails. I wish to stop ...
3
votes
1answer
383 views

How can I determine valid Mac OS X Server `serveradmin` commands?

I've used Mac OS X Server's serveradmin command line interface for Server Admin.app & now Server.app for starting & stopping services, viewing status & settings, and occasionally running ...
5
votes
2answers
4k views

Windows: How do I add a program to the system's path environmental variable from the command line?

I'm looking to permanently add a directory to the %PATH% environmental available on a large number of Windows machines. Is there any way to do this from a command line (cmd) so I can script up a ...
0
votes
1answer
268 views

Path not loaded for user when connecting with SSH

I have an Windows 2008 Server Instance running on EC2. I have installed an application and added it to the path and it is now available to my Administrator user from the Command Line. However, when I ...
0
votes
1answer
208 views

How to combine outputs of ps and lsof

Usually output of ps has a pid somewhere. Is there a way to combine this, preferably with a one-liner, with an output of lsof ? e.g. 27915 ? Ss 0:03 gpg-agent --daemon gpg-agent 27915 ...
3
votes
1answer
2k views

How to retrieve the current Windows NLA network location from command-line?

We have a Windows Server 2008 R2 domain controller which always sets its NLA location to 'Network 3' after a reboot. Without fail, this defaults to Public, which screws with my Domain profile ...
5
votes
3answers
8k views

changing colors of files/dirs in linux ls

I use putty with a black background and was wondering if there was or is a way to change the colors of the dirs which are dark blue. i noticed DIR_COLORS.xterm and DIR_COLORS do they play this role? ...
95
votes
5answers
4k views

How to cd into a directory with this name “-2” (starting with the hyphen)?

I have a directory named: -2 I want to cd into it but the cd complains: bash: cd: -2: invalid option With no success, I've tried: cd "-2" cd '-2' cd \-2 Any solution? Edit: no file browsers ...
-3
votes
3answers
5k views

How to safely kick out other users logged in as root?

I tried this: pkill -KILL -u root It turns out that wasn't what I wanted. Now I can't log in by SSH. What is the correct way? Edit - I've added the word "safely" to the question. I know that you ...
0
votes
1answer
66 views

How to access running application's internal CLI?

I'm running a java application (on Ubuntu) with its own internal CLI but no API or access from outside. One solution I can think of is running this application in its own pseudoterminal and then ...
6
votes
3answers
6k views

How to clear Windows event logs using command line?

Normally I can open the Computer Management console, go to the Event Viewer snap-in, open the Windows Logs folder, right-click on Application/Security/Setup/System subfolder, choose Clear Log and ...
5
votes
1answer
407 views

Identify which process is responsible for heavy disk i/o under FreeBSD

I wonder how I can monitor which process takes out all my IO bandwith. The only command i know is gstat but it shows cumulative info. Is there any tools i can use to inspect the running processes for ...
1
vote
2answers
225 views

Set up linux with both GUI and CLI

I want to know if it's possible to install ubuntu server (if there is an other Linux distribution that solves this I'm open to suggestion) with both GUI and CLI so that i can choose to boot it with ...
1
vote
1answer
55 views

Scheduled capture from COM port

I want to capture COM output to a daily file. I can capture manually, using something like RS232 Data Logger, but I want to run a scheduled task so I get a daily log of the data captured. Is there ...
12
votes
2answers
191 views

Sun Grid Engine huhohshdhjha

when I type qstat -h, I get the following option [-s {p|r|s|z|hu|ho|hs|hd|hj|ha|h|a}] show pending, running, suspended, zombie jobs, jobs with a ...
-1
votes
2answers
321 views

How do I copy files between harddrives on Ubuntu CLI? [closed]

I have a dedicated server with a 120gb main ssd. The server happens to come with a couple of 3000GB hard drives. I'd like to use them to back up my main drive. Preferably, I'd like one as an exact ...
-1
votes
2answers
101 views

Find Hostname by having IP-Address

Is there a way to find out hostnames only by having the IP's of the hosts, while only using Windows' command line (cmd)?
2
votes
1answer
143 views

How can I calculate the total size of an extremely large number of files with a particular extension?

I've got a directory in Linux that contains a large number of files (tens of thousands), plus directories that may contain thousands of files as well. At some point the following du command fails ...
1
vote
1answer
55 views

Can I use the CLI to reset an IP address from a different subnet?

I'm working with a small office network which has fifteen devices on 192.168.2.x. They want to add a print server to the network. Simple enough, except that the print server seems to think it's ...
3
votes
1answer
471 views

Save output and exit code of command to files on windows

I want to run a command and save its output and its exit code, in different files. Here's what i am doing: cmd.exe /C command 1> %TEMP%\output.log 2> %TEMP%\error.log && echo ...
0
votes
2answers
1k views

How to stop freeswitch by the command line?

freeswitch has it's own CLI and it is possible to shut it down with shutdown command issued within this CLI. But is it possible to shut it down bu separate command, for example, by shell script?
2
votes
4answers
3k views

How to configure PHP CLI on linux ubuntu to run as www-data?

I have a symfony2 application on my ubuntu. Symfony has a plenty of useful console commands (like php app/console cache:clear or php app/console assets:install web). The problem is If I run them as ...
-3
votes
1answer
52 views

trying to find domain name in VM [closed]

I requested helpdesk my VM computer name to be added to the domain. after I run the SystemInfo command in the command line, I get WORKGROUP instead of the desired domain name. Help desk insist that ...
0
votes
1answer
588 views

Cisco AP, how to show dot11 wpa handshake timeout?

Please help me with a newbie question regarding Cisco AP CLI . According to this Cisco doc , I know how to change WPA handshake timeout value to 2000 milliseconds. Cisco1242AG-1(config)#dot11 wpa ...
3
votes
2answers
1k views

What is the Cisco iOS (CLI) command to display a WAP's Radio MAC address?

I can't believe I'm unable to find this with teh g00glez or by RTFMing, but does anyone know how to display the MAC address of a Cisco WAP's Radio (wifi connection) from the command line? show ...
0
votes
2answers
176 views

broke pipe when creating file system

I want to ask help on how to solve my problem broken pipe when creating the file system through ssh. Here is the result when I issue the create filesystem command in ssh. [root@6~]# mkfs -t ext3 ...
1
vote
3answers
149 views

Is there a way to see the path of a program executed from the Windows CLI?

If I type a command in the prompt, the command processor searches it in current path, and then (if not found) in the paths listed in PATH environment variable. So is there a way to easily know in ...
1
vote
2answers
812 views

How to delete files quicker than rm -rf? [duplicate]

Possible Duplicate: Millions of files in php’s tmp error - how to delete? Is there any way how to delete folder/files quicker than with command rm -rf? It seems my disc is filled with ...
2
votes
1answer
86 views

Distributing a custom command line tool to enterprise servers

I've been tasked with building a command line tool that we will be providing to our enterprise customers so that they can use the API to upload data to our platform. The API works with standard cURL ...
-1
votes
1answer
257 views

Edit a file on CentOS 6.3 Minimal [closed]

I installed CentOS 6.3 Minimal on VMWare Player, and I realized how 'minimal' the setup is... Don't have network connectivity. From what I searched on google, I need to edit the file ...
0
votes
1answer
650 views

HP 2520 poe switch ip configuration trouble

I'm configuring an HP 2520 switch by CLI menu interface and i get an error trying to setting this ip config: default gw: 10.0.0.254 switch ip: 10.0.255.5 subnet-m: 255.255.0.0 The error simply ...
0
votes
2answers
146 views

MySQL: Load data infile and ignore tab in file

MySQL command I have so far: load data infile 'data.txt' into table foo (column_foobar); data.txt: bar1 bar2 bar3 Note the tab at beginning of each line. How can I ignore the tab ...
1
vote
1answer
149 views

Can you list virtual hardware of a guest via the CLI in ESXi 5.0?

Can any one tell me of an ESXi line command that can be used to list the different virtual hardware components assigned to VMWare guests running on ESXi, with vcenter? E.g. I want to find out how ...
0
votes
1answer
97 views

Debian hanging on MySQL shutdown

One of my websites had too many MySql connections, I did some performance in the scripting and shutdown some expensive queries to make the website more reachable again. Because my processlist was ...
0
votes
1answer
229 views

Change Password on Domain Account from CMD Line

Quick background. My organization recently changed from Lotus Notes to Microsoft Outlook. I have some production users that were formerly using Lotus Webmail that will be using Outlook WebApp. With ...
1
vote
1answer
188 views

How do I configure a stored procedure wrapper and security settings to provide safe access to command-line operations?

I'm ultimately trying to find a way to allow the safe use of BCP and selected other command-line functionality from within SQL Server. The organisation I am in currently have xp_cmdshell disabled ...
1
vote
1answer
572 views

Change logon /disable Citrix XENAPP 5.0 farm wide or local

I want to disable logons before I do maintenance on a single server in the farm. If i run change logon /disable will that disable logons on that server or will that disable logons on the entire farm? ...
3
votes
2answers
2k views

How to configure Users permissions in Windows Server 2008 R2 by command line?

I have to create about 800 users in our Windows S 2008 R2 and I'd like to make a few settings with them. Create user: net user Joe 1mb4pASs /add /fullname:"John Smith" /passwordchg:no /comment:"no ...
0
votes
2answers
36 views

To specify ftp commands in a file

What is the linux equivalent of -s windows ftp option that specifies a file that contains ftp commands: >ftp -s:C:\ftp-commands.src
-1
votes
2answers
400 views

What's the best way to create a static backup of a website?

I have an old Joomla! site that I would like to convert to a static set of html pages (since it's not being updated anymore and I don't want the overhead of having a MySQL db running for something ...
3
votes
1answer
131 views

AWS Instance stand-alone ssh connect string differences: root vs ec2-user

I have an instance I created from the web console, using the "Classic" wizard & the default Amazon Linux image. When I go to Instance Actions, Connect, and select the "Connect with a standalone ...
2
votes
1answer
2k views

resize2fs get status after ssh connection interrupted

I lost SSH connection after I executed a resize2fs command on my drive /dev/md0. Is there a way, now that I've restablished a connection, to check if the resize2fs is still running? And the status? ...
0
votes
1answer
1k views

How can I run an elevated powershell script as part of VMWare Customization Specification?

Background / Goal I have a VMWare template that I am deploying and I am using VMWare's "customization specifications" to perform many of the sysprep tasks. The last thing I need to accomplish is ...
0
votes
2answers
51 views

Files and their headers? [closed]

(I'm a dos guy , I always liked to view files in norton commander and see inside stuff etc) however over the years I've noticed that each file(well , most of) ( binary files ) has header : For ...
0
votes
1answer
75 views

VPN Server on Windows server 2003 with command

Is there any way to create VPN Server using command line on Windows server 2003 ?
1
vote
1answer
95 views

running commands as other users - best method

When running commands as other users from the command line, what is recommended best practice? In the past I've used sudo like so: sudo -u username command [args] I've been told (with no ...