chris01010
Programmer
Hi,
I have the below script that should take the command line option and run the desired script on another server. Only it doesn't seem to run the function, infact it just returns back to the command line.
Any ideas?
I have the below script that should take the command line option and run the desired script on another server. Only it doesn't seem to run the function, infact it just returns back to the command line.
Code:
case $1 in
1) msgbacklog() ;;
2) jobstatus() ;;
esac
msgbacklog ()
{
ssh BLAH@SERVER1 > output 2>/dev/null <<_EOF
/home/BLAH/backlog.ksh
_EOF
}
jobstatus ()
{
ssh BLAH@SERVER1 > output 2>/dev/null <<_EOF
/home/BLAH/jobstatus.ksh
_EOF
}
Any ideas?