Command Line interface (CLI)

learn more… | top users | synonyms (2)

3
votes
1answer
261 views

Defrag options in Windows Server 2012

I am looking at the command line options for defrag.exe as well as the "ScheduledDefrag" task on Windows Server 2012, and I don't understand some of the arguments. In particular, when I view defrag ...
-1
votes
2answers
88 views

Desktop backups maintenance on a network share

I have configured Windows Backup and Restore function on Windows 7 Professional desktops to make daily backup on a network share placed on a Windows Server 2012. (BTW It's a pity that this utility ...
0
votes
2answers
104 views

How do you create separate config files for mod_php on apache and command line php?

I'm looking at the ubuntu sets up php for both apache (mod_php) and php cli. They have one configuration ini in /etc/php5/apache2/php.ini which contains settings for apache+php and another ...
0
votes
1answer
18 views

disabling extra message after changing to new directory

Whenever directory is changed, it is displaying the new directory name: # cd /home/ Directory: /home/ # cd ~ Directory: /root How to disable it? We are logging into csh. We already verified ...
2
votes
1answer
46 views

Tracking progress with xargs

I'm using xargs to execute a command on a set of input parameters something like this: cat <someinput> | xargs -n 1 -P 5 <somecmd> The input file is really long and take a long time to ...
0
votes
2answers
110 views

Graceful way to rsync millions of files between two local folders

I want to rsync a folder with millions of files from a local directory to another, on a daily basis. The files themselves change very rarely. I want to reduce the impact on the running server, e.g. ...
-2
votes
3answers
48 views

Put another hdd in ubuntu server 10 [closed]

I am using Ubuntu server 10 for LAMP and hosting sites. I installed the server without a GUI, and what I want to do is to add a second HDD for some backup. I attached the HDD but the problem is I ...
0
votes
0answers
16 views

CLI modify-user with add-mysql returning “A db login with same name already exists”

I am trying to give an existing user access to a newly created database via virtualmin via CLI. This what I am using: virtualmin modify-user --domain mydomain.com --user existingusername --add-mysql ...
1
vote
1answer
60 views

Bash: delete old files except one

I am using the following command to delete old backup files: find backups/ -name "bak_*.tbz" -mmin +4800 -exec rm -vf {} \; The problem: When there are no new files, than all files are deleted. I ...
0
votes
3answers
445 views

deny local logon for a new user through command line windows server 2008

I am creating a local user account that I want to be able to connect over ftp, but not log on to the server, I believe the way to do this is to deny local logon but am unsure how to achieve this via ...
1
vote
1answer
29 views

command to add permissions to a folder for a local user in windows server 2008

as part of an installer I need to create a user with limited permissions to add the user I will use net user "<username>" <password> /add /fullname:"<username>" I now need to ...
-6
votes
1answer
217 views

How to undo rm -rf? [closed]

How we can undo rm -rf command ? For example, I have Application folder. And I have remove it by rm -rf Application But it was my mistake and want to recovery or want that Application Folder. But ...
0
votes
1answer
248 views

php -i executed from command line and phpinfo executed from browser show different php parameters

My problem is that when I execute php -i it shows the php version as php 5.4 and the loaded config file as /usr/local/lib/php.ini. When I execute the script phpinfo.php from the command line it shows ...
0
votes
3answers
82 views

efficient, simple ‘lazy’ differential FTP upload tool? (i.e. for web dev workflows) [closed]

I am looking (over some time now and with some despair) for a tool, I guess most web developers need: A fast, ‘lazy’ aka ‘differential’ FTP upload tool. To quickly upload (without much server-side ...
0
votes
0answers
107 views

Output results of findstr at a Batch file so they can be read by PHP

I have this Batch file which looks for a string through a the files in the current folder: @echo off for /f %%i in ("*") do ( findstr /m /C:color "%%i" ) Now I would like to output the ...
0
votes
1answer
43 views

How to restrict a Linux program's permissions

I'm running a native linux program from PHP using shell_exec. Specifically, calling antiword to extract text from Microsoft Word files users uploaded. However, as I've got no way of assessing ...
1
vote
2answers
126 views

How to directly query authoritative DNS nameserver from command line, bypassing cached servers? [closed]

How can I directly query authoritative DNS nameserver from Linux and Mac OS X command line, bypassing cached servers? This is helpful when wanting to immediately verify newly-created DNS host names ...
2
votes
1answer
50 views

Command Line Script Issue

I've been working on a batchfile script for a few weeks now that should automate certain routine tasks I need to perform during my work. However, I've stumbled upon a problem which I haven't been able ...
1
vote
1answer
58 views

How do I pull up a command prompt on an Azure Website instance?

I am running an instance of the Ghost blogging platform on Azure. Setting it up was simple, I used a template from the gallery and it was set up in no time. FTP'ing into it to do work like template ...
0
votes
1answer
314 views

Linux empty buffer cache command permission denied

I'm using the following commands to flush cache: # sync; echo 3 > /proc/sys/vm/drop_caches # sync; echo 2 > /proc/sys/vm/drop_caches # sync; echo 1 > /proc/sys/vm/drop_caches When I use ...
1
vote
2answers
132 views

Why is DU causing high CPU usage?

On CentOS 6.5, du -sk /home and sh -c (du -sk \/home) 2>/dev/null run because a scheduled disk usage for /home, but du is causing 100% CPU usage. Plus, before it's even finished, another du gets ...
-2
votes
1answer
75 views

How to show the actual username instead of nobody in Linux?

I'm trying to find the memory usage for each account on my VPS. I use the "top" command to achieve that but the problem is that it is not showing the actual username for each account. I have four ...
0
votes
1answer
51 views

measure RDP time to login

I have a requirement to, for a short while, measure the login time to remote desktop services. I have found a fork of "rdesktop", called "rdesktop-nogui", which is without X bindings and is possible ...
2
votes
2answers
119 views

What's the best method to list all active NICs and IP addresses in a vSphere cluster?

I have ESXi 5.1 with many hosts in a cluster. I would like to generate a list of active NICs and thier IP addresses. Whats the easiest tool to generate such a list? *I am not looking for the Virtual ...
-3
votes
2answers
131 views

How to access a windows command line from a linux machine? [closed]

How to access the windows command line from an ubuntu machine. OS in question is Windows 7 and Ubuntu 12.04. Accessing here refers to remote access.
1
vote
2answers
217 views

Gnu parallel & pipe

I want to send each line of a file to another program's stdin, e.g. input.txt line1 line2 line3 I want to use the gnu parallel like this (i.e. pipe each line as stdin to the more command) cat ...
1
vote
2answers
86 views

Redirect to stdin instead of argument when using xargs [closed]

for exmaple, using the command cat foo.txt | xargs -I{} -n 1 -P 1 sh -c "echo {} | echo" The foo.txt contains two lines foo bar The above command print nothing.
1
vote
1answer
30 views

Get a tally of tapes in an IBM 3500 tape library

My organization uses an IBM 3584 Tape Library. I want to know how many tapes are currently loaded into it and how many slots are available in the library total (or at least remaining). IBM's website ...
4
votes
1answer
1k views

Is there a way to find out what printers a user has mapped remotely?

Remotely as in via command line. Not sure if there's a reg key or something similar I can peek at to see if a user has the correct printers mapped.
0
votes
0answers
59 views

fork/vfork are failing but return an out of bounds errno

I have a piece of software running on a 64 bit Cent 5.8 Final box, kernel 2.6.18. This piece of software using fork and vfork. Recently some failures occurred, and in my logging I can see that fork ...
0
votes
1answer
65 views

Azure Create VM With New Storage Account

I'm currently trying to automate the deployment of virtual clusters. Every one of the machines / cluster should get its own storage account to keep things faster and also make deletion easier. ...
1
vote
1answer
365 views

Full Information from Terminal Services Manager (tsadmin.msc) via command line

I would like to get the full session information that is presented in the Terminal Services Manager via the command line or PowerShell (so that it can be used in automation) or at the very least the ...
0
votes
0answers
65 views

Is there any way to 'describe-instances' for another AWS account from awscli?

I've added a role to allow another account to list instances, but there doesn't appear to be any option to choose which account I'm listing instances from. Is there some undocumented option to pass in ...
0
votes
2answers
109 views

mysql: unrecognized service … but mysql is installed and it's working

I'm trying to stop mysql and do some changes , then i'm going to start it again I'm using a SSH client . So i ran this 3 commends without any problem mysql mysql> SET GLOBAL ...
1
vote
2answers
117 views

Why would some folders be invisible on the command line?

I have a webserver which I log into over SSH. Recently, and I don't know what changed to cause this, any directory or symlink named "system" became invisible. After SSHing into the server on the ...
0
votes
0answers
64 views

Installing the Apple Root Certificate Authority on CentOS CLI

I could be barking up the wrong tree here, but I'm looking for help on installing Apple's Root certificate (http://www.apple.com/certificateauthority/) on a CentOS server via the command line - which ...
0
votes
1answer
68 views

Netcat: connection lost before transfer is complete

Interesting thing with Netcat (nc) in CentOS 5 or 6 (nc-1.84-10.fc6 or nc-1.84-22.el6.x86_64). How can I work it around? I can't find a bug about this, but It models a file transfer to a remote ...
0
votes
1answer
358 views

Cron won't use msmtp to send emails in case of failed cronjob

I'm trying to configure a machine so that it will send me an email if one of the cronjobs output something in case of an error. I'm using Debian Wheezy. Cron is working normally (without the email ...
0
votes
0answers
99 views

Edit DNS records from the command line in Mountain Lion Server

I'm trying to edit a DNS A record in Mountain Lion server using the serveradmin command. I can pull up the list of records using sudo serveradmin settings dns and I get this record I want to ...
7
votes
1answer
486 views

Administrator view ALL mapped drives

In my understanding of security, an administrator should be able to view all connections to and from a computer - just as they can view all processes/owner, network connections/owning process. ...
0
votes
2answers
45 views

How to broadcast a command on Windows

I am going to frequently deploy different versions of a program on a cluster of Windows machines (mostly Windows XP), so I am willing to use a command-line broadcasting tool (either built-in or ...
0
votes
1answer
1k views

Scan for hardware changes in Windows using command line

How can I scan for hardware changes in Windows using the command line? I'm looking for the same functionality as right-click "Scan for Hardware Changes" in the Device Manager.
1
vote
4answers
176 views

Count requests from access log for the last 7 days

I would like to parse an access log file and have returned the amount of requests for the last 7 days. I have this command cut -d'"' -f3 /var/log/apache/access.log | cut -d' ' -f2 | sort | uniq -c | ...
3
votes
1answer
557 views

dsadd gives “The name provided is not a properly formed account name.”

This command: dsadd user "cn=testing dummy2,cn=Users,dc=domain,dc=local" -display "testing dummy2" -samid testing.dummy2@domain.local -pwd password76 -fn testing -ln dummy2 -disabled no -upn ...
0
votes
1answer
31 views

list all files with the same name in order of when they were modified

I have a directory, let's call it htdocs/live/. Many different directories are underneath this directory, each with a file commonFunctions.js living in the js directory. For example, here is the ...
1
vote
1answer
61 views

Sent command-line output as an arguments to other command

1) Here is the command to install special package (for example system/header) #pkg install system/header 2) ALso we can install several packages #pkg install system/header network/ssh package/rpm ...
0
votes
1answer
417 views

Import an SSL Certificate into IIS 7 from the command line

I have an SSL Certificate which has been exported into a PFX file. How can I import this file into an IIS 7 instace from the command line? I do not want to bind it against a specific site, just ...
1
vote
3answers
796 views

In PowerShell, how can I parse a preformatted output?

Is there existing tooling to take text-based output and pipe it to a dynamic object that can be queried as columns? Specifically, I'm invoking .. query session /server:MYSERVER .. which is ...
2
votes
1answer
80 views

Command-line interface for Computer Managment MMC?

I want to make a script that closes open files in our storage. I can do it with compmgmt.msc, connecting to the storage as a remote computer, then I go to "System Tools" --> "Shared Folders" --> ...
1
vote
1answer
452 views

OpenShift: Connecting to JBoss EAP 6 management (SSH tunneling?)

I'm trying to connect to JBoss EAP 6 instance management on OpenShift. Connecting directly doesn't work (firewall), so I want to set up a SSH tunnel: ssh -L 10999:localhost:9999 ...