Linux Operating System (MOSC)

MOSC Banner

How to schedule a shell script in linux server

edited Dec 30, 2013 1:34AM in Linux Operating System (MOSC) 16 commentsAnswered
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

Howdy, Stranger!

Log In

To view full details, sign in to My Oracle Support Community.

Register

Don't have a My Oracle Support Community account? Click here to get started.

Category Leaderboard

Top contributors this month

New to My Oracle Support Community? Visit our Welcome Center

MOSC Help Center