Stack Exchange Network

Stack Exchange network consists of 174 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.

Visit Stack Exchange

Questions tagged [command-line-interface]

A command-line interface (CLI) is a mechanism for interacting with a computer operating system or software by typing commands to perform specific tasks.

0
votes
0answers
14 views

Shell with server admin control [migrated]

We have a long-term dispute in our company. The webdevelopers sometimes need to execute a command on the server, but the server admins do not allow them to use SSH, because they do not want to risk, ...
0
votes
2answers
58 views

AWS MTurk Command Line Tools - A JNI error has occurred

I'm trying to install and use Amazon Mechanical Turk Command Line Tools, which I just downloaded from https://requester.mturk.com/developer/tools/clt I'm trying to run them from a Administrator ...
0
votes
0answers
53 views

Can't get folder removed from Dropbox exclude list

I am running Dropbox on a linux server (no GUI) and I can't get Dropbox to remove a specific folder from its exclude list. I've installed the command line interface. Previously I ran dropbox exclude ...
0
votes
0answers
11 views

How to Measuring loads bandwidth on Cisco Router interfaces?

Can we measure loads (bandwidth) on an interface of a Cisco router? Let's say we have 2 routers, and both are connected to each other via GRE tunnel that goes through the internet. Can I measure the ...
0
votes
1answer
41 views

How to scan our range of ports efficiently? [closed]

I am trying to create a script that will check if my firewall works correctly. For that I need a command that checks our range.
1
vote
0answers
39 views

get FULL hardware configuration of a VM from powercli

I want to export the complete hardware configuration of a vm to the console via PowerCLI. Get-VM seems to only have limited information based on a Get-VM xxx | Get-Member check. In vCenter, if you ...
0
votes
0answers
18 views

Screen terminal replaces some characters with question marks? (ä ö ü ß § °)

I know if this is important, but I'm running a Minecraft server in a screen on my VPS. Everthing was working just fine two days ago, but then I resetted my machine yesterday (same OS as before, Ubuntu ...
0
votes
0answers
17 views

locate output: are directories always before files?

Assuming use of a single locate database, is the order of results in locate(1)'s output guaranteed to list a directory before all files contained in that directory? I'd like to write a program that ...
0
votes
1answer
19 views

Wrapper to send command output via email (like cron)

I'm looking for a wrapper command (ideally in Python) which executes a given command and handles its output (STDERR/STDOUT) similar to cron: if there was no output (and return code 0), do nothing ...
0
votes
0answers
44 views

How can I change the initial configuration of IBM Security access manager which is done on CLI?

I have entered wrong host IPv4 address and I want to change that to correct one. Is there any way through which I can re-configure the ISAM CLI?
0
votes
1answer
36 views

How can I make a local ISO on a Linux server available to a VMware ESXi/vCenter virtual guest via the virtual CD/DVD?

Current Method In the past I've done this by copying the ISOs to a Windows desktop then using the vCenter client to upload the ISO to a temporary datastore location on the ESXi server, then using "...
0
votes
0answers
50 views

WebDAV share: how to mount on CLI with access to non-priviledgs user and no /etc/fstab?

I have never used WebDAV before (I like sshf) but I am trying it. I want to mount a remote WebDAV share that I set up on my server, on my local computer. If I try as non-priv user I can't access ...
0
votes
0answers
33 views

Using XFreeRDP, is it possible to view active sessions before logging in?

In my office we have several machines that everyone log in to for a certain resources, using 5 global users anyone can access.(sadly they did not agree to change to process so i have to adjust) - if i ...
-1
votes
1answer
52 views

setting umask for a directory so that all directories, executable file(.sh , .cmd, .bat) are 750 and regular file 640

need to create and change existing file and directory such that all directories and executable files(*.sh, *.bat, *.cmd ..) are 750 and regular file are 640 . I need to this in shell and python both. ...
0
votes
0answers
28 views

JVM is crashing in a call of RUNJVA from a CL program on AS400 machine

Calling a runnbale jar from a CL program by using RUNJVA command two times with different parameters as,      RUNJVA     CLASS('/MYFOLDER/JAVA/project.jar') +                PARM('INIT' '129.186.121....
1
vote
1answer
41 views

write/wall message to users with color

Is it possible to send messages to other users (i.e. via the wall and/or write commands), with colors in the message? I have a shutdown script that kicks other users off of a shared file server, and I ...
1
vote
1answer
47 views

How to enable dig to show status codes?

With default options dig shows the return status for a DNS query in the comment ;; ->>HEADER<<- ... status: NXDOMAIN: ubuntu:~$ dig hosted-by.myinternetservices.com. ; <<>> ...
0
votes
1answer
29 views

Lint PHP and only return errors

I'd like to use php -l to only return errors and not No syntax errors detected messages. Is this possible?
0
votes
1answer
54 views

How to get performance metrics for a VM in azure with power-shell and cli

Am getting an error while running cli cmd " access denied". az monitor metrics list --resource /subscriptions/xxx/resourceGroups/yyy/providers/Micros‌​ oft.Compute/virtualM‌​achines/TestVM ...
-2
votes
1answer
156 views

Random Sleep in Crontab/Terminal [duplicate]

I want in terminal or in crontab(both) be able to put a random time. Something like Sleep $(1-300) pkill screen && ./start just a random simple example
28
votes
5answers
3k views

Best way to remove shutdown command, but keep reboot

I have a raspi type device in a data center, and recently accidentally fat fingered and pasted a shutdown command into the wrong terminal on my screen. Is there a way to keep shutdown -r but remove #...
0
votes
1answer
93 views

Saving PID in nohup output

I want to save the PID of a nohup process as part of the name of nohup's generated output file. This is going in the right direction, but only works if the process with it's ID is already settled, i....
2
votes
0answers
71 views

Stopping a windows service via command line, where the service has symbols in it

For whatever reason the company who installed this service used the same name for the display and the service name. Which is this format (not exact wording to protect them) "Blah® Blah™ Agent ...
3
votes
1answer
2k views

Return only a HTTP status code from curl command

I want to just get a statusCode from CURL command response. When I use this command: curl -I http://uploadserver.ln/1.mp4 I want to just get 200 rather than this long result: HTTP/1.1 200 OK ...
0
votes
1answer
262 views

How to get list of openstack Instances with Project name

My openstack setup is Mitaka version. I want to list all the Instances with Project Name. I tried with below command but it shows Tenant ID but not name. nova list --all-tenants
0
votes
0answers
69 views

Sonicwall modify access rule destination via cli

This is the first time I access a Sonicwall thru cli. Someone has modify the source of the http/https management so now, there is no way to access it via the gui, only via ssl. Could someone tell ...
0
votes
1answer
2k views

EMC VNX 5300 - How to access Control Station

We have an EMC VNX 5300 and the certificate has expired. I have already researched the instructions for viewing the certificate and regenerating a new one. The steps require accessing the Control ...
-1
votes
1answer
27 views

Get client time on Apache server

I actually have two questions: 1) The timestamp in Apache error.log file is client's time or the server's? 2) If I connect to the server via command line and execute the command HEAD / HTTP/1.0, ...
0
votes
1answer
235 views

Windows Defender Command line not finding updates

I try to update Windows Defender with the command line utility. "C:\Program Files\Windows Defender\MpCmdRun.exe" -SignatureUpdate The result is Signature update started . . . Signature update ...
3
votes
1answer
271 views

scp - What do the “-d” and “-t” options do?

I ran into this post that suggests adding the following to .ssh/authorized_keys in order to force an scp command : no-port-forwarding,no-X11-forwarding,no-agent-forwarding,no-pty,command="scp -v -r -...
0
votes
2answers
170 views

Assign folders privilidges for App Pool Identity (CLI Only)

I have a site running on IIS 10 in the default app pool. I need to give permissions for it to read to a folder tree in a (Windows) docker container. How, using the CLI only, can I determine what ...
1
vote
0answers
26 views

How do I set up multiple unique accounts via command line?

I have to setup and configure about 60 (+ more in the future) windows 7 embedded PC's with the same settings. Each of these PC's will have 12 accounts on them. Each of the accounts will have their own ...
0
votes
0answers
60 views

linux sh -c replace echo not working

This seems like it should have a super simple answer, but I have search for a while and tried different suggestions to no avail. As an example, I am trying to create a function that will be available ...
2
votes
1answer
161 views

cannot send long path filename (UNC path) to printer

i'm using long path names with UNC (UNI), for example: \\?\c:\tmp......\file1.prn but when i try to send the file to a printer on windows command-line, for example with copy/print command, it ...
-1
votes
1answer
514 views

Powershell remote access denied on workgroup

I've configured a domenstic network with PCs running windows 10 and I'm trying to set up remote access via powershell between these hosts. I've enabled remote access on all the hosts, authorizing all ...
0
votes
0answers
2k views

How to list active directory groups in linux for a given user, one per line, knowing that some group name contain a space character

When using "groups" or "id -Gn", I end up with the typical space-delimited list of all groups for the current user. These commands run on the assumption that group names cannot contain a space ...
1
vote
0answers
165 views

Does Bash through Linux as a Subsystem for Win10 replace Git Bash for Windows?

I'm in the process of learning how to create Wordpress templates, and as a part of that was told to install Git, npm, node and gulp. However, the online course leaves out details about where stuff ...
1
vote
5answers
120 views

Is there a secure way to run multiple MySQL CLI commands without having to keep asking the user for a password?

I have a bash script that runs a bunch of MySQL commands, separated by user input. Each time a query is run, the password must be re-entered. I understand it's best to avoid putting the password on ...
0
votes
1answer
312 views

asterisk playback sound when someone answers

This is an asterisk CLI question. I want to be able to play a sound byte with the asterisk "originate" command, but only when someone answers, like: channel originate *insertoutboundlinehere* ...
0
votes
1answer
45 views

Add a user to a domain group and set the user privileges to certain folder Win10

I have a user in my workplace domain, I want to add him to a specific domain group then assign him some privileges on a specific folder. I wonder how this can be done using command line or a more ...
1
vote
1answer
457 views

Configuring a DELL storage array with both controllers set to the same address

I've gotten hold of a used Dell PowerVault MD1000 with two MD3000i (aka AMP01) controllers, both of which are configured to the same address. However my attempts to configure them - or indeed perform ...
1
vote
1answer
141 views

Is there a way to get the plugin output of icinga2 on the commandline?

With icinga2 one can use icingacli monitoring list to get the monitoring results on the commandline. I'm looking for the detailed output of the plugins/services (shown in icinga2 as 'plugin output', ...
0
votes
0answers
60 views

How do you use the message of an optarg in zsh completion?

In the zsh completion docs there is an optarg 'message' Each optarg following an optspec must take one of the following forms: :message:action ::message:action An argument to the ...
0
votes
2answers
77 views

How to make nginx return error on demand without changing configuration

I'd like to have nginx reverse proxy return 502 on demand if I have emergency task that requires my upstream service to be running, yet users shouldn't connect to it and nginx should indicate "server ...
-2
votes
4answers
106 views

Azure VM's Accessing/Managing

I am aiming to be able to access and manage VM's in Azure. The aim is so me to log in (az login) through the CLI into my own account and be granted full access and privileges to another subscription ...
0
votes
1answer
509 views

Where and how to install waagent (Linux VM Agent) via CLI?

I am creating a VM from disk in azure from CLI. The VM gets created successfully, but in the properties, it shows VM agent unavailable. Because of which I am unable to ssh to the VM. I am creating VM ...
0
votes
2answers
57 views

Does it matter which order options are entered when using the command line?

Question: Does it matter which order options are entered when using the command line? The following example comes from CentOS. Would these two commands produce the same result? sudo yum update -y ...
0
votes
2answers
187 views

Bash script shows error for “pwd”, simple script

I'm trying to make a Bash shell script but it is not working. Here is the contents of the script: #!/bin/bash pwd I would expect this to print out the current directory. Instaed, it prints this: ...
0
votes
1answer
129 views

grep multiple occurrences with intervening lines

I'd like to do the following: Given a file with many lines, several of which match a pattern, output the first matching line, the last matching line, and all the lines in between (I want them in ...
7
votes
2answers
3k views

Kubernetes - how to map docker run command-line parameters to kubectl command line

I need to run this Docker command in Kubernetes: docker run -p 8080:8080 sagemath/sagemath sage -notebook I can map everything across except "-notebook" - does anyone know how to do that? Here is ...