View Full Version : Perl Command Line within ASP.NET
homeacademy
12-03-2003, 08:59 AM
I need to run a perl command line from within VB.Net. The command line looks like this: [quote]myscript.pl-merge-setup=xxx</CODE> So, I have a VB.NET app which does some prelim stuff, and then needs to call the perl app as above. I have tried to do this with a shell statement, eg [quote]Shell("perle:\web\xxx\myscript.pl-merge-setup=xxx")</CODE> The page does not retun any errors, but the perl script does not execute properly. I'm not sure how to do this. Any help would be appreciated.
bruce
12-03-2003, 11:22 AM
I don't think you can spawn a shell because of security reasons.
I'll do more research if that's the case.
[b]quote:Originally posted by homeacademy
I need to run a perl command line from within VB.Net. The command line looks like this: [quote]myscript.pl-merge-setup=xxx</CODE> So, I have a VB.NET app which does some prelim stuff, and then needs to call the perl app as above. I have tried to do this with a shell statement, eg [quote]Shell("perle:\web\xxx\myscript.pl-merge-setup=xxx")</CODE> The page does not retun any errors, but the perl script does not execute properly. I'm not sure how to do this. Any help would be appreciated.
</blockquote id="quote"></font id="quote">
homeacademy
12-05-2003, 04:47 AM
Please let me know what you find. If there is another way of doing this (instead of using Shell) please let me know.
bruce
12-05-2003, 12:19 PM
I don't think you can spawn any process on our server, i tested using various methods.
Alternative : You can use your vb.net app to make a http call to the perl script.
[b]quote:Originally posted by homeacademy
Please let me know what you find. If there is another way of doing this (instead of using Shell) please let me know.
</blockquote id="quote"></font id="quote">
vBulletin® ©Jelsoft Enterprises Ltd.