Go Back   Web Server Hosting Forum by BODHost > Support > PHP Forum
 

Reply
 
Thread Tools Display Modes
  #1 (permalink)  
Old 07-11-07, 12:44
BOD Member
 
Join Date: Nov 2005
Posts: 131
Question How to run a Perl program from the Unix command line?

To run a Perl program from the Unix command line:
perl progname.pl

Alternatively, put this as the first line of your script:
#!/usr/bin/env perl

and run the script as /path/to/script.pl. Of course, it'll need to be executable first, so chmod 755 script.pl (under Unix).
Reply With Quote
  #2 (permalink)  
Old 07-12-07, 05:39
BOD Member
 
Join Date: Nov 2006
Posts: 271
Default

You can also try the following to run the program -

perl progname
./progname
progname

In case there are any errors, you can run the following -

perl -w progname

In order to run a program with a debugger, you can run the following -

perl -d progname
Reply With Quote
  #3 (permalink)  
Old 07-14-07, 16:31
BOD Member
 
Join Date: Jul 2007
Posts: 296
Default

perl dgjfj/yhguk/dfrty.pl
Reply With Quote
  #4 (permalink)  
Old 07-16-07, 07:35
BOD Member
 
Join Date: Nov 2006
Posts: 271
Default

Yes, we can implement that too. ;)
Reply With Quote
  #5 (permalink)  
Old 07-16-07, 18:19
BOD Member
 
Join Date: Jul 2007
Posts: 296
Default

yups i should make a phpshell that like is gui
Reply With Quote
  #6 (permalink)  
Old 07-17-07, 11:41
BOD Member
 
Join Date: Nov 2006
Posts: 271
Default

post in some, I also need to check them out. I have some scripts too, that i will provide it to you.
Reply With Quote
Reply


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off
Forum Jump


All times are GMT -6. The time now is 02:20.

Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.
SEO by vBSEO 3.2.0
Copyright © 1999-2012, BODHost Ltd. All rights reserved.