Command Line interface (CLI)

learn more… | top users | synonyms (2)

0
votes
1answer
50 views

How to specify a username in ldapsearch tool?

I'm new to ldap. I need to specify username in plaintext with some parameter without any sasl. So this command gonna give you some search results, but it always empty cause there's no authorization: ...
-1
votes
1answer
401 views

Ubuntu PPTP VPN to Microsoft Server Command Line ONLY

I try to setup a VPN Connection from a Ubuntu 12.04 LTS to Microsoft VPN Server (Ubuntu is the Client in this Case), but I only get this error message: .. connection failed! Check the log messages ...
0
votes
1answer
33 views

Why is Cat quoting individual words in command substitution

All, I'm attempting to use command substitution to keep command line arguments in a file. My initial thought was to simply place the command line arguments in a single line in a file and then call ...
0
votes
1answer
67 views

CLI package to replace Plesk [closed]

Myself and another programmer are tasked with maintaining a few webservers. I prefer CLI tools, she prefers Plesk. However, I am adamant about not installing Plesk for quite a few reasons. I have ...
0
votes
2answers
74 views

Graph arbitrary data on the command line

I'm currently debugging an issue where I see a large number of threads in my application hanging on to a database connection even though they are asleep, often the threads sleep for a significant ...
-1
votes
2answers
178 views

Cannot source .bashrc over SSH

Logging into my work station over SSH, I notice that none of my aliases work. Sure enough: $ alias $ source ~/.bashrc Could not open a connection to your authentication agent. So I googled the ...
3
votes
2answers
231 views

Powershell - external command's parameter not accepted

This seems like a simple problem but I am unable to fix it Running dfsutil command in shell returns result C:\Windows\system32>dfsutil link "\server.domain.com\DFSRootname\Sharename" Link ...
2
votes
3answers
148 views

Password Change With Command Line On NetBSD

How can I change root password with one line command on NetBSD? On FreeBSD, it's something like this echo "password" | pw mod user root -h 0 ;
-1
votes
2answers
48 views

Run a command-line file that has output, but bypass that and allow me to continue running commands [closed]

I'm trying to run some php files that have output and can take up to an hour to run, but I don't need to see the output as its writing to a log file (or I can push output to a log file) and I want to ...
0
votes
1answer
102 views

How Do I tie 2 ports of I have a dell 5448 togather for a teamed pair of broadcomm nic's

I have 3 dell 1950 servers that have 2 broadcomm gigabit nic's in them. The Broadcomm software made teaming the pair quite easy. How Do I configure a dell 5448 switch for 3 2GB paths on six ports for ...
-1
votes
1answer
86 views

ESXi free scripting [closed]

I am trying to figure out if it is possible to script commands on the esxi system to run commands on the esxi system after the first auto start vm at a specific time after it is powered on before the ...
0
votes
2answers
95 views

Timezone inaccuracy

we've been having an issue getting time synced across our Litespeed web cluster, that being that the system time (we're using CentOS) appears to be thinking that the current time for EST (Being the ...
2
votes
1answer
948 views

Automatically close netcat connection

I am executing the following command from a script: echo '{"hostUp": true}' | sudo /usr/local/bin/netcat localhost 8001 However, the netcat client stays open indefinitely. How can I close the ...
0
votes
1answer
2k views

SSL error curl/wget unknown protocol/wrong version number

I've been trying to use local hosted https urls in command line/cron jobs and i get those errors. curl output is similar. The same commands, when used in other servers works perfectly. Default ...
1
vote
1answer
540 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
71 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
176 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: ...
0
votes
2answers
587 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
70 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
82 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 ...
4
votes
3answers
557 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, ...
2
votes
3answers
231 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
3answers
3k 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
72 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
86 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
153 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
20 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
vote
1answer
242 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
331 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
1k 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
301 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] ...
1
vote
1answer
463 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 ...
-1
votes
1answer
662 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 ...
4
votes
1answer
2k 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
191 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. ...
5
votes
3answers
749 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
107 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
139 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 ...
-1
votes
1answer
91 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
86 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
2answers
279 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 ...
4
votes
4answers
15k 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
36 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
686 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 ...
-1
votes
1answer
1k 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
75 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.
12
votes
2answers
616 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
336 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
70 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
2answers
491 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. ...