tosh has asked for the wisdom of the Perl Monks concerning the following question:
When I run it from the shell it all works fine. But when I run it from CGI it doesn't run at all. There are no CGI errors, so it's not that.#!/usr/bin/perl print "Content-Type: text/html\n\n"; `/usr/local/realproducer/realproducer ARGS...`; print "Done\n";
But nothing looks like it would cause problems, except for maybe the 'TERM' variable.'HOME' = '/home/me'; 'SSH_CLIENT' = 'IP ADDRESS 1027 22'; 'SSH_CONNECTION' = 'IP ADDRESS 1027 IP ADDRESS 22'; 'BLOCKSIZE' = 'K'; 'EDITOR' = 'vi'; 'MAIL' = '/var/mail/me'; 'PWD' = '/tmp'; 'USER' = 'me'; 'LOGNAME' = 'me'; 'SHLVL' = '1'; 'OLDPWD' = '/home/me'; 'ENV' = '/home/me/.shrc'; '_' = '/web/admin/media.pl'; 'PATH' = '/sbin:/bin:/usr/sbin:/usr/bin:/usr/games:/usr/local/sbin:/us +r/local/bi n:/usr/X11R6/bin:/home/me/bin'; 'SHELL' = '/usr/local/bin/bash'; 'TERM' = 'vt100'; 'PAGER' = 'more'; 'SSH_TTY' = '/dev/ttyp0';
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: CGI script creating a user shell environment
by ambrus (Abbot) on Feb 21, 2004 at 20:40 UTC | |
|
Re: CGI script creating a user shell environment
by Jaap (Curate) on Feb 21, 2004 at 20:54 UTC | |
|
Re: CGI script creating a user shell environment
by iburrell (Chaplain) on Feb 22, 2004 at 20:49 UTC | |
by ambrus (Abbot) on Feb 23, 2004 at 15:12 UTC |