A shell script is a script written for the shell, or command line interpreter, of an operating system.

3
votes
0answers
95 views

Determine if a user exists on ESXi (Busybox)

I'm writing a shell script in which I need to check if a given user exists. On most Linux systems, I can use:id -u ${USER} 2>&1 || die "User ${USER} not found"orgetent passwd ${USER} 2>...
3
votes
0answers
382 views

Run program on kde logout

I have created a backup script and I want to run it in a terminal window (to view the progress) when I logout from kde. I used the autostart feature and that works but I'm unable to show a terminal ...
2
votes
0answers
105 views

Mount USB-Device (Printer) per Script on Ubuntu 14.04 Virtual Box 4.33

We have ubuntu 14.04 with Windows7 on the Virtual Box 4.33 running. As the USB-Printer is mounted at the host or the guest and there seems to be no solution to make it on both available, now my ...
2
votes
0answers
71 views

Unable to connect to Amazon EC2 without using PPK file

I have a build job which runs on Hudson and synchronizes content from an Amazon AWS server. This is written in shellI have a PPK file given to me which can establish the connectivityHere is the ...
1
vote
0answers
39 views

Find out the real path of a file from a SUBST drive

Is it possible to find the real location of a file, knowing its location on a drive created with subst? Example:> subst d: c:\dir\> real_path "c:\file"c:\file> real_path "d:\file"c:\dir\...
1
vote
0answers
57 views

pass in parameter for a shell script, but why are there two values?

I have some trouble with a shell script, pls help me, thx.I create a shell script file is named 'deploy.sh', and everytime I call this script with a parameter looks like '20180208','20180214'(...
1
vote
0answers
19 views

Renaming all files on the form *.extension.{index} to *_{index}.extension

This question is related to this question over at Unix & Linux SE.I have a bunch of files with filenames on the form *.pdf.{index} (filenames are due to wget) that I'd like to rename to *_{index}...
1
vote
0answers
148 views

Download multiple html pages from a txt file

I have a txt file with several links. I need to access each link in this txt and download / save each page. To access each page, login and password are required. How can I do this by terminal linux / ...
1
vote
0answers
128 views

How to save the output of top command in XML format?

top -o %MEM -b > file.txtThe file.txt is like:top - 15:49:36 up 32 min, 2 users, load average: 1.56, 1.40, 1.01Tasks: 83 total, 2 running, 79 sleeping, 2 stopped, 0 zombie%Cpu(s): ...
1
vote
0answers
59 views

Run a script when Steam Streaming starts

I'm using Steam in-home streaming from my desktop PC to my living room. The only problem is, my monitor and my living room screen have different resolutions, so every time I switch I need to change ...
1
vote
0answers
27 views

How reply to multiple incoming emails with the same body

I want to be able to reply to multiple emails with the same body. In this scenario the reply-to field is different, and so is the original body of the email.The only thing that stays the same would ...
1
vote
0answers
61 views

Upstart - execute script at boot when network is not available

I'm trying to figure out how to launch a command/script at boot only if the network is not available (eth0, wlan0) toconnect to a Bluetooth access point (NAP). I understand that upstart is one way to ...
1
vote
0answers
342 views

Colon(:) operator in Unix shell

As far as colon is concerned i understand that is is used in certain situations as a null and as a parameter of expansion for substring, but can someone explain me this:do_qc: $(STAGE1_OUT_FILES)...
1
vote
0answers
2k views

Can ffmpeg be paused while recording, and then resume?

I want to record an FM radio station that provides an internet stream. I've worked out the command to record this, and I'm happy with the results. However, once in awhile I will start the command and ...
1
vote
0answers
136 views

Want to send automatic mails from email server, That To addres has to read from email that i received.?

I want to send multiple mail automatically.I will receive mail asFROM: abc@domain1.comTO: 123@domain2.comBODY: mail contains (username@domain3.com)What I want to is take the username@domain3....

153050per page