Perl programint main() { pid_t pid; int status; char *argv[2]={"100033",NULL}; pid = fork(); if (pid < 0) return -1; if (pid == 0) { execv( "/wdir/script.pl", argv ); } }
@ARGV comes up empty. What do I do wrong here ?open (FILE,">test.txt"); print FILE $ARGV[0];
In reply to ARGV empty when calling Perl from C program by Anonymous Monk
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |