Hi, Wang9736 First the file battest.bat should look like this (without the ============ stuff)
====================start================= #!/bin/sh cd / ls =================stop====================== Then you need to make it executable chmod a+x battest.bat then you should be able to run it ./battest.bat Another way is to run shell using battest.bat as an input /bin/sh ./battest.bat So in typical unix fashion you have many ways to make it work. Just as a side note please call the file something like shtest.sh The mention of .bat files brings back too many fond (but often bad) memories. Phil Wilshire [EMAIL PROTECTED] wrote: > > hi everyone > 1. > now i write: > cd / > ls > and save it as battest.bat ,then call it as root : ./battest.bat . > but result is :bash ./battest.bat permission denied .why? > 2. > i want to know which function can call a bat file(isn't a .exe file) > in program? i cann't find any functions can do this > > > thanks > > > > > > > > ------------------------------------------------------------------------ > 一 起 来,150 万 人 同 时 在 玩 的 梦 幻 西 游 > <http://event.mail.163.com/chanel/xyq.htm?from=126_NO4> > > > ------------------------------------------------------------------------ > > _______________________________________________ > uClinux-dev mailing list > [email protected] > http://mailman.uclinux.org/mailman/listinfo/uclinux-dev > This message was resent by [email protected] > To unsubscribe see: > http://mailman.uclinux.org/mailman/options/uclinux-dev _______________________________________________ uClinux-dev mailing list [email protected] http://mailman.uclinux.org/mailman/listinfo/uclinux-dev This message was resent by [email protected] To unsubscribe see: http://mailman.uclinux.org/mailman/options/uclinux-dev
