![]() |
Hello and Welcome from United States to the UNIX and Linux Forums! Thank You for Visiting and Joining Our Global Community.
|
|
google unix.com
|
|||||||
| Forums | Register | Forum Rules | Links | Albums | FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read |
| Shell Programming and Scripting Post questions about KSH, CSH, SH, BASH, PERL, PHP, SED, AWK and OTHER shell scripts and shell scripting languages here. |
More UNIX and Linux Forum Topics You Might Find Helpful
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| c system call | rangaswamy | High Level Programming | 1 | 02-19-2008 01:53 PM |
| lvm_queryvg call does not work properly and results in a sudden memory rise. | sandiworld | AIX | 0 | 11-15-2007 01:57 AM |
| pstat_getdisk() call doesn’t work properly in HPUX 11.31 (11i V3) | sandiworld | HP-UX | 2 | 10-25-2007 10:39 AM |
| how to differentiate system call from library call | muru | UNIX for Advanced & Expert Users | 2 | 07-19-2007 11:20 PM |
| does this variable call work--Korn | morkfard | UNIX for Dummies Questions & Answers | 2 | 07-10-2001 10:59 AM |
|
|
LinkBack | Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
||||
|
System call in CGI not work
I have a cgi script that calls a perl script (A.pl) to do something in backgroup, when run that perl script in command everything works fine, but when it calls by the CGI script, nothing works. I have tried another perl script (B.pl not cgi) calls A.pl, and it works fine.
The A.pl is chmod 777, Can someone here help? Thank you! Here is my cgi calling A.pl: #!/usr/bin/perl -w # use CGI; $mycgi = new CGI; print $mycgi->header; print $mycgi->start_html( -title=>'System Tes'', -BGCOLOR=>'#FFFFCC'); # do something here # system calls both don't work system("/mypath/A.pl"); unless (system("/mypath/A.pl")) { print "system calls failed: $!"; # not seeing this msg from browser } # print HTML message here, is seen from browser print $mycgi->end_html; exit; |
| Bookmarks |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|