How can do excute command?

  • Follow


 I was connect other machine rsh command.
 Othere computer made shell script .

msgchk.sh

#!/bin/ksh
export LANG=C
DATE1=`/bin/date +%b`
DATE2=`/bin/date +%d`
/usr/bin/grep "${DATE1} ${DATE2}" /var/adm/messages*


so , main computer execute command.

rsh machine msgchk.sh
stty: : Invalid argument
stty: : Invalid argument
/var/adm/messages:Jul 16 01:53:21 hanmi unix: SUNW,hme0: late collision
/var/adm/messages:Jul 16 11:48:00 hanmi unix: SUNW,hme0: late collision
/var/adm/messages:Jul 16 11:48:48 hanmi last message repeated 1 time
stty: : Invalid argument
stty: : Invalid argument

I don't understand stty: : Invalid argument command.
Do know any other method?







0
Reply seokho_jang 7/16/2003 4:16:15 AM


0 Replies
52 Views

(page loaded in 0.036 seconds)











5/19/2013 6:35:36 AM


Reply: