Command Line interface (CLI)

learn more… | top users | synonyms (2)

0
votes
1answer
28 views

How Can I specify server to use for mail command

I am working on a crontab job that runs a script, which looks in a specific directory for the existence of a file. If the file does not exist it exits. However, if the file exists it sends an E-mail ...
0
votes
1answer
24 views

Windows Azure Cloud Service - add Local Security Policy to a user account in startup task

I have a Windows Azure Cloud Service project that includes a startup task Startup.cmd file to create some scheduled tasks. In this file I am using the command line to create a user account which I ...
0
votes
1answer
73 views

35 times increased latency between data send rate of 1 millisecond vs 100 microseconds. WHY?

Experiment hping -S --data 100 -c 100 10.56.1.2 -i u100 round-trip min/avg/max = 0.5/14.0/15.8 ms hping -S --data 100 -c 100 10.56.1.2 -i u1000 round-trip min/avg/max = 0.3/0.4/4.8 ms Observation: ...
-1
votes
1answer
28 views

Windows 8 - Firewall Issues from Command Line

I created the following script basically to block absolutely everything and only allow through what I want, however it's not allowing through what I like in regards to the internet. Can anyone see an ...
-3
votes
1answer
54 views

How can I open a GUI from a cli in linux? [closed]

I connect via ssh to a server (Linux) and can not open a GUI. The error is DISPLAY is not set I assume this is some environmental variable. How do I configure this so that a GUI is displayed when ...
2
votes
1answer
13 views

Remove DVD drive from device manager - command line

Is there a way through command line to uninstall the entry under DVD/CD-ROM drives in device manager? Somehow someone applied a GPO on our top level domain and it's affected a number of things, I've ...
5
votes
3answers
107 views

How to detect current media type in CLI under Windows? (DVD-RW, BD-R, etc)

How to detect current media type in CLI under Windows? (DVD-RW, BD-R, etc) I've tried with wmic cdrom get /format:list but no info about the current media type. I want to detect if the disc is a CD, ...
1
vote
3answers
55 views

How to stop bare bash cd (change directory command) from changing the working directory to $HOME?

I do this too often: $ pwd /a/long/long/way/from/anywhere $ cd # oops - meant to tab-complete something /home/$USER Can cd defaulting to $HOME be disabled?
1
vote
2answers
51 views

Changing the Permissions on a Windows Share Remotely?

I read about the Net Share command a lot of places. It appears to have the ability to stop a remote share from being shared using the /DELETE argument, and it also appears to be able to add users to ...
0
votes
0answers
22 views

Display only the last line of a windows command line executable

I'm trying to write a batch script that manages simple software deployments. One of the steps in the script compresses a file structure into a 7zip archive. During the compression process, the z7ip ...
-1
votes
1answer
33 views

NSLookUp using CLI in windows [closed]

My question is an amateur one. I'm looking at traffic going to and from my computer. When I find an IP address that looks suspicious I use NSLookup on it. If I was to say put random IP addresses in ...
0
votes
1answer
57 views

Is it possible to execute remote GUI process locally in Windows?

I know that Linux can open - for example - a firefox window in a local pc as if it was a window opened remotely. Can I do the same thing in windows? N.B. I use PsExec but it can launch a program from ...
-1
votes
1answer
16 views

Ubuntu server trouble with command-line prompts

I bought VPS with ubuntu 12.04 server minimal. When I logged in, there is very simple command line by default. How install full-function command-line with prompt and etc?
-1
votes
2answers
53 views

Cron to do a backup and automatically send it to dropbox [closed]

Is there a way to send backups to Dropbox (tar & send)? I bought a plan there and was thinking to save some money dropping Amazon S3 (that I'm using for backups). I'll have to manually delete old ...
1
vote
1answer
52 views

Upgrade Ubuntu Kernel from command line

I am running Ubuntu 10.04 on my server. It has Ubuntu kernel 2.6.X running on it. I was trying to update my kernel yesterday. For that I had run the following commands sudo do-release-upgrade -c ...
0
votes
0answers
40 views

windows command line start mysql with --skip-networking

Following How to start a service with certain start parameters on Windows. Any ideas why the following doesn't work? sc start MySQL --skip-networking mysql -uroot -p -e "show variables like ...
0
votes
1answer
70 views

Disable LDAP service in CentOS 6.3

What command needed to disable LDAP service in CentOS 6.3. I tried: authconfig --disableldap but it doesn't work. I am trying to run ISC-DHCP in my machine but it always shows Not searching ...
1
vote
1answer
67 views

How to shutdown ESXi 5 in N minutes

On the VmWare commandline, I can shutdown the box using the halt command ~ # halt --help BusyBox v1.9.1-VMware-visor-6030 (2011-02-15 14:57:41 PST) multi-call binary Usage: halt [-d delay] [-n] [-f] ...
0
votes
0answers
76 views

How can I download an S3 binary file using Amazon's AWS CLI tool?

I am trying to download a binary file from an AWS S3 bucket using Amazon's new command-line interface. However, the tool responds with an error message. $ aws s3 get-object --bucket myBucketName ...
0
votes
1answer
45 views

Automate git-pull, stuck with keychain

I'd like to create a cronjob to automatically run a git-pull every minute. The problem is that my repo is private, I had to create keys on my system (Ubuntu Server 12.04). I installed keychain and ...
0
votes
0answers
24 views

Merging multiple log files by date including multilines

I have several logs containing lines all starting with a timestamp, so that the following works as expected to merge them: cat myLog1.txt myLog2.txt | sort -n > combined.txt Problem is, that ...
3
votes
1answer
122 views

npm install, but can't run

I'm a newbie to Node, but I've been trying to install some npm modules and after what seems like a successful install, I can't run the new app. I must have some basic config error, like a missing ...
1
vote
2answers
30 views

Apache Run Command Line Command

I am working on a web server running on Apache in Linux. I am trying to use the system() call from PHP to use the Amazon EC2 Command Line tools (ec2-describe-instance,etc). However, it doesn't work. ...
4
votes
3answers
124 views

Can I start a program from command line for another logged in user?

We have a Windows Server 2008 machine running Terminal Services. When users login, a custom program is launched and resides in the system tray that gives them some customized hotkeys for our company. ...
1
vote
1answer
45 views

Add attribute through commandline in Active Directory

I am migrating from OpenLDAP to Active Directory (Samba4). I was wondering if there is a commandline command (in windows commandprompt or powershell) to add Attributes to the Active Directory Schema. ...
-2
votes
1answer
32 views

Windows Command Line - Multiple PHP Versions [closed]

I am currently running Wampserver with multiple PHP versions (5.3.8, 5.4.3). Wampserver easily allows you to switch back and forth between the php version you want apache to use. However, I'm having ...
0
votes
0answers
176 views

How to enable Internet Connection Sharing using command line in Windows 7 and 8 [closed]

I spent around 4 hours looking for this thing, but finally I got forced to ask it here. I want to enable a Network Connection sharing from lets say Local Area Network to Wireless Hotspot either ...
-1
votes
1answer
53 views

CentOS 6, FTP settings lost after single user mode

I recently put my server into single user mode with init 1. After I did that, I ran telinit 3, to try and get out of single user mode. It seemed to do the trick, however, now I cannot get back in with ...
0
votes
1answer
58 views

More secure way of sending MySQL commands from a remote server on the command line

What is the most secure way of running SQL commands from a web server to a remote MySQL server from the command line. I can think of two ways: mysql --host mysql.mydomain.com --user admin --password ...
1
vote
1answer
67 views

Command line - query account type (local, network managed, mobile)

How can I query account type information. Things like who and users don't show this. Also tried things like dscacheutil -q user I'd like to know if a users account is a mobile account and I am doing ...
1
vote
2answers
172 views

Is there a built-in command-line tool under Windows like wget/curl?

I come from a Linux/Unix background and I have been wondering if Windows has a binary that can download files from the console. I would like to automate a certain process and one of my requirements ...
1
vote
1answer
19 views

How do I find out the current remaining lifetime of my AFS tokens?

I can use klog to renew my AFS token, but I am wondering whether there is an equivalent command to view the remaining lifetime of my AFS token.
2
votes
2answers
136 views

Is there any way to convert a putty “All session output” log, with control characters, to a more human readable “Printable output” log?

We had a contractor in-house to help with some configuration of a product and we're trying to look through the putty logs he set up for us, but instead of using "printable output" he used "all session ...
0
votes
1answer
149 views

ntpdate and firewall: no server suitable for synchronization found

I'm behind a firewall and only have access to ports 80 and port 443. How can I sync my system's clock? Here's the command I issue: sudo ntpdate -u 1.debian.pool.ntp.org But I keep getting the ...
0
votes
1answer
42 views

How to check top processes?

I'm look for shell script to send Top processes as an email when Monitor CPU load average exceed 20 I'm running RedHat 6.
10
votes
2answers
214 views

backslash at the beginning of a command

In Installing RVM manual I see a lot of lines starting with '\': Install RVM with ruby: $ \curl -L https://get.rvm.io | bash -s stable --ruby I'd think it is just mistype but they repeat ...
-3
votes
2answers
55 views

How can I count the number of lines matching a pattern returned from a linux command

How can I count the number of lines matching a pattern returned from a linux command I want the number of lines returned beginning with 'foo' , so if I pipe the output to grep will this ...
0
votes
1answer
55 views

single or set of patches from windows update?

Is there a way to install several patches by kb or other means and only install those specific without manually downloading the patches? I want to use automatic update services but don't want every ...
0
votes
1answer
73 views

How to scan only last 24 hours files with clamav

I've create a bash script to scan whole server for virus via clamav. The script has been running via cron every night. Because of this I want to scan only the files that has been added last 24 hours. ...
-1
votes
2answers
50 views

Consecutive Remote Rsync Commands (Purpose Defeated by Multiple Password Prompts)

I have two huge folders that I want to rsync one after the other using one command. Command 1: rsync --compress /home/user/folder/ user@192.168.1.10:/home/user/a/folder Command 2: rsync ...
0
votes
0answers
53 views

Differential backup missing moved folders (flawed archive attribute logic)

Recently I've discovered that my backup system it flawed: there are situation where various files/folders are missed. I do my backup from local disk to a network NAS. I use Cobian backup, and I have ...
0
votes
2answers
83 views

special characters in http_proxy environment variable

What is the correct format using special characters in http_proxy environment variable? Or to be mor specific, what to do with special characters in username or password when authenticate to http ...
-2
votes
2answers
110 views

How to make differential backup without using archive attribute? [closed]

Plain and simple: I need to make differential backup of my files without using the typical file attribute logic. Possibly with a free software. So the software I need should rely on it's own indexing ...
1
vote
1answer
86 views

net use password limitations

I'm trying to mount a network folder in a script using net use, and I keep getting a bad password error. I'm using the following syntax: use \\server\share password /User:serviceaccount Doing it ...
12
votes
4answers
921 views

What's a secure alternative to using a MySQL password on the command line?

We have a PHP command-line script to version a database. We run this script whenever a developer has added a new database patch. The script runs the patch with the MySQL command-line: system('mysql ...
3
votes
2answers
142 views

How can I find my public ip address with built in system commands without relying on any third party websites or services? [closed]

Are there any built in system commands such as ping that let me discover my public ip-address either on a Windows or Linux operating system? This should not rely on any third party websites or ...
0
votes
1answer
72 views

s3cmd put only files that do not exist in destination bucket

I've been using s3cmd to sync local files on our server with the S3 bucket. There are over 200,000 files on the local server. Can't seem to find any documentation on the site that explains how to ...
1
vote
1answer
170 views

How to enable SMTP server in Windows Server 2012

We are using servermanager.exe to install smtp server in windows 2008R2 from comand prompt. Is there any alternate to servermanager.exe? How to enable smtp server in windows 2012 from command prompt? ...
0
votes
1answer
73 views

How can you send mime encoded emails on systems that do only support uuencode

If you use e.g. Solaris without additional installed software to send MIME mails: how can you send mails with MIME attachments with standard command line tools?
-3
votes
2answers
202 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 2 3 4 5 20