Feb 18, 2010, 5:11 AM
Post #4 of 6
Did you add any error handling that could help point to the problem?
Re: [sravanthy] changing system date using perl through web server on QNX
[In reply to]
If it works from the command line but not the browser, then that indicates that the problem is related to the differences in the environments (typically permissions).
Things you can try:
From the command line, su into the user that owns/runs the web service then run the script. Does it still work, or do you receive an error?
Instead if the system call, open a pipe to the command. If opening the pipe fails, then $! should hold the reason.
Or, use one of the IPC:: modules, such as IPC::Run, IPC::Open3