How to schedule a shell script in linux server
Hi All,
I created one shell script for file transfer.I want to do schedule for every day. Can you please help me?
My script
#!/bin/bash
. /home/dr.env
HOST="130.235.320"
USER="olkje"
PASWRD="QAZjuuu9pl#"
/usr/bin/lftp<<END_SCRIPT
open sftp://$HOST
user $USER $PASWRD
cd /data/philips/bin
get vv.txt
quit
END_SCRIPT
I created one shell script for file transfer.I want to do schedule for every day. Can you please help me?
My script
#!/bin/bash
. /home/dr.env
HOST="130.235.320"
USER="olkje"
PASWRD="QAZjuuu9pl#"
/usr/bin/lftp<<END_SCRIPT
open sftp://$HOST
user $USER $PASWRD
cd /data/philips/bin
get vv.txt
quit
END_SCRIPT
1