Beefy Boxes and Bandwidth Generously Provided by pair Networks
Your skill will accomplish
what the force of many cannot
 
PerlMonks  

Re: Re: Find the permission problem

by wombat (Curate)
on Dec 29, 2000 at 22:53 UTC ( #48863=note: print w/ replies, xml ) Need Help??


in reply to (zdog) Re: Find the permission problem
in thread Find the permission problem

Tried it just now, no effect. $?==9728 $?>>8==38

tye Giving it a straight string System("/dirstruct/dirstruct2/cgi-bin/subdir/progname static_argument_value"); produced the same effect.

i0cgi-bin's permissions are "root html rwxrwxr-x" cgi-bin/subdir's are "wombat apache rwxrwxr-x" the program I'm trying to run is "wombat wombat rwxr--r-x" and the target app is "wombat apache rwx--x--x"


Comment on Re: Re: Find the permission problem
(zdog) Re: (3) Find the permission problem
by zdog (Priest) on Dec 29, 2000 at 22:58 UTC
    If you need the variables: you can always do: system("$command $arg");

    or

    my $cmd = "$command $arg"; system($cmd);

    Zenon Zabinski | zdog | Zenon.Zabinski03@students.bcp.org

Re: Re: Re: Find the permission problem
by Fastolfe (Vicar) on Dec 30, 2000 at 03:47 UTC
    rwx--x--x is a bad set of permissions for a Perl script (assuming that's what it is). Scripts need to be read and interpreted by an interpreter, which means the script needs to be readable to the interpreter. If your script is owned by yourself, but merely executable by the user running the interpreter (apache?), it won't be able to read the script and will fail.

    Try setting the permissions to something more sane, like 755, and see if that helps.

    In addition, if you're frequently executing one Perl script from within others, you may be interested in breaking that Perl script out into a module, and simply 'use' that module from your other Perl scripts that need to get at that common code.

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://48863]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others exploiting the Monastery: (8)
As of 2014-07-23 03:42 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    My favorite superfluous repetitious redundant duplicative phrase is:









    Results (132 votes), past polls