Search Results

Search: Posts Made By: temp_user
9,798
Posted By temp_user
You can use expect command to login to the server...
You can use expect command to login to the server

VAR=$(expect -c 2> /dev/null "
spawn ssh -n -T -o StrictHostKeyChecking=no $user@$host
expect \"*?assword:*\"
send -- \"$passwd\r\"...
1,295
Posted By temp_user
I tried ur command with slight modification: ...
I tried ur command with slight modification:

Chk_Etl_Status=`cat /dstage/questnet/qnetdv/input/Etl_Status.dat | cut -d"," -f1`
echo Chk_Etl_Status=$Chk_Etl_Status

Just added space after file...
12,722
Posted By temp_user
I was able to solve the issue.Please find below...
I was able to solve the issue.Please find below the code


#/bin/bash

ip_addr=10.10.10.10.
user=root
passwd=Help
filename=test_backup.sh
path=/root/


VAR=$(expect -c "
...
Showing results 1 to 3 of 3

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