[Mono-aspnet-list] Not executing shell script from asp.net

bitforum admin bitforumadmin at gmail.com
Mon Aug 3 03:55:48 EDT 2009


Hi All,

I have a shell script helloworld.sh in /usr/test directory on open suse 11.0
which has the code to create a new blank file foo.txt.

Owner of this directory is wwwrun:www and has full permissions on this
directory. Tested executing the helloworld.sh file from the terminal by
logging as wwwrun user.
It is working from there.

When trying to execute shell script from asp.net with the following code:
            Process shProcess = new Process();
            shProcess.StartInfo = new ProcessStartInfo("/bin/sh",
"/usr/test/helloworld.sh");
            shProcess.Start();
It is neither throwing any error not executing the script.

Thanks
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.ximian.com/pipermail/mono-aspnet-list/attachments/20090803/1a200ede/attachment.html 


More information about the Mono-aspnet-list mailing list