Search Results

Search: Posts Made By: sandy0077
11,974
Posted By sandy0077
SFTP - non-interactive - using passphrase
Hi,

I have written a script that does SFTP successfully without using the password (Thanks to this site :b: ) and it works fine.
The thing is - this script uses the public and private key...
1,588
Posted By sandy0077
or best rename the script (fg) to something else;)
or best rename the script (fg) to something else;)
1,588
Posted By sandy0077
Hi James, fg is a command to restart...
Hi James,

fg is a command to restart suspended process or job.

instead, why dont you give execute permissions to the script
(eg. chmod 755 fg)

and then execute the scripts by saying

./fg...
37,124
Posted By sandy0077
or maybe... u could grep "the requested...
or maybe... u could

grep "the requested operation was successfully completed" logfile > /dev/null
if [ $? -eq 0 ]
then
continue
else
exit
fi

-
22,289
Posted By sandy0077
oh!! This should work line='echo...
oh!!
This should work

line='echo "###Usage: $0 <database1> <database2>"'

DB1=`echo $line | tr '>' ' ' |tr '"' ' ' | cut -d "<" -f2`
DB2=`echo $line | tr '>' ' ' |tr '"' ' ' | cut -d "<" -f3`...
22,289
Posted By sandy0077
you could try this: DB1=`echo $line | tr '>'...
you could try this:

DB1=`echo $line | tr '>' ' ' | cut -d "<" -f2`
DB2=`echo $line | tr '>' ' ' | cut -d "<" -f3`

assuming the variable line contains the following in the following format:...
1,641
Posted By sandy0077
Hi, Could you be a more specific please?
Hi,

Could you be a more specific please?
11,306
Posted By sandy0077
Hi, Use the following command to get the...
Hi,

Use the following command to get the previous day's date.

DATE_STAMP=`TZ=CST+24 date +%y%m%d`
11,306
Posted By sandy0077
you can get the previous day's date with...
you can get the previous day's date with following command:

DATE_STAMP=`TZ=CST+24 date +%y%m%d`


Try the following link:
...
12,316
Posted By sandy0077
Hi, Previously, you encountered the error...
Hi,

Previously, you encountered the error [cat: cannot open /tmp/I_out.plt20546] for the simple reason that the file - /tmp/I_out.plt20546 - mentioned in the first line of your code was NOT being...
Showing results 1 to 10 of 10

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