473,399 Members | 3,888 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,399 software developers and data experts.

system command in CGI

76
Hi, can anyone plz help me. I'm trying to run the 'pepwindow' program on the input from my html form, and my script doesn't work. The following '-goutfile' option in the system command is for the output filename and '-gdirectory' for the directory.

Thanks alot.

Expand|Select|Wrap|Line Numbers
  1. #!/usr/bin/perl -w
  2. use CGI;
  3. use CGI::Carp qw(fatalsToBrowser);
  4.  
  5. my $fasta=$cgi->param('SEQUENCE');
  6. system("/usr/local/bin/pepwindow $fasta -graph png -goutfile output -gdirectory temp/");
  7. .......
  8.  
Aug 28 '07 #1
4 2476
miller
1,089 Expert 1GB
I avoid all system commands in CGI scripts.

Instead use Proc::Reliable.

- Miller
Aug 30 '07 #2
KevinADC
4,059 Expert 2GB
I have never used that module but I get edgy when a module is several years old, has no recent updates and is the only module contributed by the author. Does it seem to work OK for you?
Aug 30 '07 #3
idorjee
76
thanks Miller, i will try and see if the module does the trick.


I avoid all system commands in CGI scripts.

Instead use Proc::Reliable.

- Miller
Aug 30 '07 #4
miller
1,089 Expert 1GB
I have never used that module but I get edgy when a module is several years old, has no recent updates and is the only module contributed by the author. Does it seem to work OK for you?
Kevin,

I maintain some code that uses this module to encapsulate pdf generation, but I've never written any myself. However, it's always worked well that I can see, and I've assumed that it was used because of the relatively unstable nature of the secondary program.

I'm not sure I would use it if I had to create any new code for the very reasons that you stated. However, that's mostly because I avoid any system calls at all in all of my code.

- Miller
Sep 3 '07 #5

Sign in to post your reply or Sign up for a free account.

Similar topics

8
by: Siemel Naran | last post by:
Hi. I'm writing a command shell that reads commands from standard input. At this point I have the command in a std::string. Now I want to execute this command in the shell. From the Borland...
6
by: JLK | last post by:
I'm having a bit of a time with the following code. I can script this real easy in Bash but I'm trying to practice my C++: ******************************************************* #include...
15
by: Sokar | last post by:
Hello, I am writing a script which is using the system() command. In the script the system command invokes an encryption with system("gpg -f file.txt"). The problem comes when the script is...
2
by: Xah Lee | last post by:
Python Doc Problem Example: os.system Xah Lee, 2005-09 today i'm trying to use Python to call shell commands. e.g. in Perl something like output=qx(ls) in Python i quickly located the...
1
by: T8 | last post by:
I have a asp.net (framework 1.1) site interfacing against SQL 2000. It runs like a charm 99% of the time but once in a while I get the following "unspecified error". Sometimes it would resolve by...
3
by: Patrick.O.Ige | last post by:
I'm loading an Array below but getting the error "Object reference not set to an instance saying 'ItemNumber = CType(Args.Item.FindControl("ItemNumber"), TextBox).Text' is the error line. I DON'T...
1
by: Brad | last post by:
I have an issue trying to execute commands in a web service. The command starts under the specified user. However, it never completes its execution. I can execute simple commands like "echo HELLO"...
11
by: jobs239 | last post by:
Can I use this line inside C program "system(java -jar <jarfilename>)" to run a java program from C? Or do I have to use some JNI interface.?
7
by: Mark Rae | last post by:
Hi, Has anyone successfully used the FTP stuff in the System.Net namespace against a VMS FTP server? I'm trying to do this at the moment and can't even get a directory listing, although there...
23
by: student.matt | last post by:
ok i am trying to solve this little problem i have my program waits for the 1st system() call to finish before starting the next i will just throw an example of what i mean out in this example...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.