Command Line interface (CLI)

learn more… | top users | synonyms (2)

3
votes
1answer
283 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 ...
2
votes
1answer
559 views

“net session” listing GUIDs for computer names. Won't accept its own GUIDs

When I run "net session" or "net session /list", I get GUIDs for computer names: C:\Users\Administrator>net session Computer User name Client Type Opens Idle time ...
2
votes
1answer
219 views

Configure incoming connection (VPN) on Microsoft Hyper-V 2008 via command line

In both Windows 7 and Windows Server 2008 (R2), it is extremely easy to allow incoming connections (VPN). Just go to overview of network adapters, click 'file' and click 'new incoming connection'. ...
1
vote
1answer
384 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 ...
1
vote
1answer
442 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 ...
1
vote
1answer
48 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 ...
1
vote
1answer
146 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
257 views

How to execute rskeymgmt utility silently in windows server 2008

When i run reskeymgmt.exe - to create a backup copy of the encryption key, it responses "Are you sure want to extract the key from the Report Server? Yes (y)/ No (n)?" I found this link which ...
1
vote
1answer
137 views

EC2 API Tools formatting in Ubuntu terminal

The output of ec2 cli tools on my mac is nice and formatted like so: RESERVATION r-xxxx xxxx cl-xx INSTANCE i-xxxx ami-xxx TAG instance i-xxx ...
0
votes
1answer
64 views

Elastix “asterisk -r” command not working “-bash: asterisk: command not found”

I'm having trouble administering the current version of Elastix from the command line on a CentOS 6.3 box. I believe the command I'm look for is asterisk -r however I cannot figure out how to access ...
0
votes
1answer
45 views

Change VNC password without losing the session

I have a VNC session to my server(linux), but now i need to change their password, however, i cannot lose that session. If I use this command: vncpasswd [passwd-file] Does anyone know if I will ...
0
votes
1answer
50 views

Batch file output issue

I am trying to get a batch file to output some data to a CSV file. The command I have works perfectly in the command line but not when I copy it to a batch file. In the batch file, it just hangs and ...
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 ...
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 ...
0
votes
1answer
70 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
366 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
1answer
67 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
159 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
1answer
123 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 ...
0
votes
1answer
630 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 ...
0
votes
1answer
86 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
416 views

Creating a Jenkins build farm in a hands-off manner?

My colleague and I have set up and run Jenkins on a KVM guest running Ubuntu 12.04 with good results for a while now. We are thinking about deploying a cluster of Jenkins CI hosts in master/slave ...
0
votes
1answer
126 views

Escaping characters when calling ssh from windows

I need to call an ssh command from a Windows command prompt that will execute a command on a remote Linux machine. The command accepts two string parameters, one of which can potentially be ...
0
votes
1answer
125 views

Issue with PHP and osx 10.7 - runs via command line but not in browser

I recently removed MAMP as I wanted to have more control over my machine and wanted to make use of PHP5.4 I installed using the script located here I cannot now not even get my default PHP that is ...
0
votes
1answer
22 views

yum to install fails on default empty server

I used to download Fedora from site X, for example, but lately the site has not updated itself with new packages, therefore commands used to install any of those packages report back with errors as ...
0
votes
1answer
344 views

curl cookie and cookiejar trouble

I've got a script that curls a site using a specific cookie value in a cookie file. When I run this on my local system, the server returns the same value to my cookie jar, as per my expectations. When ...
1
vote
0answers
113 views

smbget looses mtime

Unfortunately smbget looses the mtime of files: https://bugzilla.samba.org/show_bug.cgi?id=4199 Is there an other command line tool to get files which keeps the mtime?
1
vote
0answers
78 views

Is it possible to set up a pptp server in windows via console?

I want to be able to turn a machine into a pptp server from commandline so that it can be scripted, is this possible?
1
vote
0answers
459 views

Controlling rdp listener connections from command line

RPD on my windows 2003 server sometimes becomes incapable to accept connections. But netstat shows that port is listened. c:\> netstat -ano | find "3389" TCP 192.168.1.1:3389 0.0.0.0:0 ...
1
vote
0answers
120 views

Services do not appear in sc list

We have a couple of application services that are registered and appear in the MMC Service list, but when I use the sc command they do not appear. sc query type= all Are there restrictions on what ...
1
vote
0answers
124 views

Windows 2008 Scheduled Tasks and Parallel instance issue

I have a scheduled task launching a bat file which runs a CLI PHP script. The scheduled task is configured to run every 5 minutes, and run multiple instances in parallel. However, windows is ...
0
votes
0answers
13 views

IBM AMM BladeCenter 39Y9661 problems

i'm working on a bladecenter S and i try to update my amm with putty via COM port, but when i want to see my version it doesn't work i use like every time this command: env -T system:mm[1] info ...
0
votes
0answers
19 views

Checkpoint Firewall - R75.3 - how to view time of recent CLI change

I'm trying to figure out when a colleague processed a change in the last couple of days. Very in experienced in expert or router modes. Any tips? Regards!
0
votes
0answers
11 views

How do I change the deploy directory when using Elastic Beanstalks CLI tool?

When I deploy using the EB CLI tool, with: git aws.push It deploys to /var/app/current How do I change that to deploy to /var/www/html ? Thanks
0
votes
0answers
97 views

ssh reverse tunnel port forwarding connection fails

Updated: diagram http://s22.postimg.org/b2jfgawup/diagram_ssh_tunnel_a1.png I am able to do a reverse port forwarding through the PUTTY GUI with settings similar to below. once I apply this setting, ...
0
votes
0answers
24 views

Odd behaviour with varnishlog and stream redirecting

I wrote a helper to debug varnish installation and have used it on both production and development server. The odd thing is, I encountered different behaviour even though the setup is nearly identical ...
0
votes
0answers
135 views

setting up dell compellent array from command line

So we have a few compellent storage arrays. I have little knowledge of these things but I am improving. so my basic question is I want to configure the server via cli and make some script which does ...
0
votes
0answers
40 views

Is there a simple command to delete multiple ip sla policies?

I have a Cisco 819 router and on it there are a lot of ip sla policies. when I run the sh runcommand I get the following; ip sla auto discovery ip sla 2 http get http://www.facebook.com cache ...
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 ...
0
votes
0answers
113 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
0answers
60 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
0answers
67 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
0answers
67 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
0answers
103 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 ...
0
votes
0answers
49 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 ...
0
votes
0answers
280 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
0answers
233 views

can we convert postgresql dump to mysql dump thorough commandline?

Can I convert a PostgreSQL dump file into a MySQL dump? I tried but I get syntax error. cd\ c: cd "C:\Program Files\MySQL\bin" mysql -u root -proot pause I run this batch file after I put this ...
0
votes
0answers
202 views

Windows Group Policy CMD scripting problems, XP

I am creating a local group policy to lockdown an XP work station. I have used "Run only allowed Windows applications" to create a whitelist of aproved apps. CMD.exe is on that list but I want to use ...
0
votes
0answers
559 views

Cloning Git repo from server to local machine - is my user level to blame?

Server: CentOS 5.7 Local machine: Macbook Pro, regular terminal client Command issued: git clone --bare ssh://myuser@xxx.xxx.xxx.xxx/home/projectname/public_html ~/gitrepos/projectname.git ...
0
votes
0answers
244 views

VPN in MS Hyper-V Server 2008 R2?

I am trying to connect a MS Hyper-V Server 2008 R2 machine (the OS with just a command prompt and settings panel) to a VPN Network and I can't get round to it. I have tried using Rasdial but the ...