shell returns
Ed Hoeffner
hoeff001@umn.edu
Thu Jun 5 20:37:00 GMT 2003
Hi
I've installed the latest cygwin incarnation and would like to be able to
execute windows commands after running a shell. Something along the line:
net use <disk letter>: \\server\share
tcsh -c <run backup shellscript here>
net use /delete <disk letter>:
I've tried both tcsh and bash, but the second net use command doesn't
execute. It does, however, if the tcsh line is commented out. bash -l -c
produces the same results. Figuring it was a return value problem, I tried
using the exit command in the shellscript that is called, but neither 0 or 1
had any effect.
Would someone please show me how to do this? It seems like it ought to work
straight away, but not in my hands. I've tried the mount command inside the
script, but couldn't get that to work either, so maybe it's something in the
way I have things installed.
All help greatly appreciated!
Thanks
Ed
Ed Hoeffner
1-271 BSBE
312 Church St SE
Mpls, MN 55455
hoeffner@umn.edu
612-625-2115
612-625-2163 fax
--
Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple
Problem reports: http://cygwin.com/problems.html
Documentation: http://cygwin.com/docs.html
FAQ: http://cygwin.com/faq/
More information about the Cygwin
mailing list