10 More Discussions You Might Find Interesting
1. UNIX for Beginners Questions & Answers
Hi, I need to join these statements for efficiency, and without having to make a new directory for each batch. I'm annotating commands below.
wget -q -r -l1 URL
^^ can't use -O - here and pipe | to grep because of -r
grep -hrio "\b\+@\+\.\{2,4\}\+\b" * > first.txt
^^ Need to grep the output... (14 Replies)
Discussion started by: p1ne
14 Replies
2. Shell Programming and Scripting
Hi,
I need help in wget or curl command to invoke a REST client services.
This is the format i need to send request
wget -H "tokenId: F6" -H "Authorization: Basic <64 bit encoded username:password>" -H "https://example.com" -H "Accept: application/Json" -o download.xml... (1 Reply)
Discussion started by: zen01234
1 Replies
3. Shell Programming and Scripting
Hello eveyone.
I would like to create a simple batch with curl (or wget) to download a URL but the URL I can only download from the browser and not from shell because curl and wget won't follow the 301 redirect which I get :confused:
I tried with curl -L but no luck.
I want to hear your opinion.... (5 Replies)
Discussion started by: accolito
5 Replies
4. Shell Programming and Scripting
Hi, I'm trying to write a shell script checks if there is ssh command listening on port 1080 at loop back interface.
If there is, just exit nicely with exit code 0.
If not, start command: #ssh -D 1080 smsuser@10.76.172.23 ping -i 60 localhost
The ssh keys needs to be generated and... (2 Replies)
Discussion started by: Kijana_kenn
2 Replies
5. UNIX for Dummies Questions & Answers
ssh -q <hostname> /opt/tcs/satish/tst.ksh
ssh -q <anotherserver> /opt/tcs/satish/tst.ksh
tst.ksh has "nohup <command> & "
when i execute below script , its throwing error as
nohup can not be found
ssh -q <anotherserver> /opt/tcs/satish/tst.ksh > log &
can someone let me... (5 Replies)
Discussion started by: only4satish
5 Replies
6. Shell Programming and Scripting
How do I use the ssh command to connect to another server without the password prompt?
I use: ssh user@host and it prompts for the password.
how do I include the password in the ssh command?
alternatively, how do you execute 1 command from server A on server B?
thanks,
... (4 Replies)
Discussion started by: toughlittleone
4 Replies
7. Shell Programming and Scripting
Hi All,
i have two machines like x and y . my requirement is i should connect to machine Y from x through ssh connection . and do some operation such as copy and move and delete files in Y machine .
i tried with this code but it is doing in machine x only . and i need to exit from Y when... (1 Reply)
Discussion started by: rateeshkumar
1 Replies
8. Shell Programming and Scripting
Hi All,
I am using ssh in my shell script. Can any one please suggest me option so that i can avoid the login message as below in the execution:
NOTE:
Please note that you have logged into the newer version of server "gabbro"
*******
Performing functions to this computer withe the... (6 Replies)
Discussion started by: vikash_k
6 Replies
9. Shell Programming and Scripting
Hello All,
I need your help, i would like to know how to use ssh command in the shell scripts? and make the script continue to enter the password without user intervention
example of the normal commands written manually: # ssh 172.30.1.256 -l mxread
password: mxread
Thanks in advance (3 Replies)
Discussion started by: Dendany83
3 Replies
10. Shell Programming and Scripting
I want to make a script to use wget to find and download mp3s on a website into a directory with a name derived from that URL. So far I have:
#!/bin/sh
echo “MP3 Downloader”
echo -n "Enter full URL address of website or website subdirectory > "
read text
cd ~
mkdir $text
cd $text
... (3 Replies)
Discussion started by: Garnett
3 Replies