in reply to calling sccs from cgi-bin script

Well, first, try printing out the command before you run it; that way you make sure you're running what you think you are.

Second, check errors (ie check $? to see if the command in backticks succeeded). You can look in your error log to see what error is being printed; probably that will be a big clue to what's going on. If you can't get to your logs, you'll want to capture the error output of the command; something like:

my $cmd = "(cd $my_DIR && $my_SCCS edit $my_tmp_file) 2>&1`;
ought to do it.

Third, the most likely problems are your $PATH environment variables and permissions.

Good luck!

Replies are listed 'Best First'.
Re: Re: calling sccs from cgi-bin script
by jfroebe (Parson) on Apr 23, 2004 at 22:14 UTC

    Hi sgifford,

    thanks for the reply! Unfortunately it produces the same... the edit executes and not the sccs. If I hardcode the sccs, then it works.

    No one has seen what you have seen, and until that happens, we're all going to think that you're nuts. - Jack O'Neil, Stargate SG-1

      Print out the command before you execute it. If that command doesn't contain sccs at all, then the problem is simply that the variable is set wrong. That problem isn't in the code fragment you posted, and should be straightforward to find.

        Hi Sgifford,

        When I print out the command, it is generating it correctly. If I place any command (/bin/ls, /bin/echo) in a variable and try to execute it, it is quietly skipped over. Now, from what I can tell, this should only be occurring with the -T taint checking flag enabled.

        confused

        Jason

        No one has seen what you have seen, and until that happens, we're all going to think that you're nuts. - Jack O'Neil, Stargate SG-1