Search Results

Search: Posts Made By: tsryn
4,447
Posted By tsryn
Using variables in SSH
Please tell me what is wrong in the following shell script.

#!/bin/sh
DATE1=`date -d "yesterday" +"%Y-%m-%d"`
ssh ftwplapp01 << EOF
echo "Date is :" $DATE1 > /tmp/testfile
cd...
7
Ssh
2,739
Posted By tsryn
thanks. but i dont have expect
dddkiran,

Thanks for the syntax.
Unfortunately I don't have expect tool in my UNIX machines.

Please advice.

Thanks in advance...
Raja
7
Ssh
2,739
Posted By tsryn
Need help on SSH
Hi,

I tried searching in the forums before posting.
All I could find was about the steps to setup trust for using ssh without prompting for password.
Let me know if you know any thread for this...
7
Ssh
2,739
Posted By tsryn
Didn't find any info on this SSH issue
Hi,

I tried searching in the forums before posting.
All I could find was about the steps to setup trust for using ssh without prompting for password.
Let me know if you know any thread for this...
7
Ssh
2,739
Posted By tsryn
Ssh
Hi,

There is a way to pass userid and password through variables in a script for running ftp command as below:

ftp -n $HOST <<END_SCRIPT
quote USER $USER
quote PASS $PASSWD


I want to...
Showing results 1 to 5 of 5

 
All times are GMT -4. The time now is 08:43 PM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy