in reply to unix rcp command within a system call
but if you use cp you'll get a correct return value:rcp mine.txt cmd1.txt; echo $? /bin/cp: mine.txt:cannot access min.txt 0
cp mine.txt cmd1.txt; echo $? /bin/cp: mine.txt:cannot access min.txt 1
maybe it's possible for you to use cp instead of rcp.
MP
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Re: unix rcp command within a system call
by jalebie (Acolyte) on Aug 28, 2001 at 21:38 UTC |