Forum

Running CGI and Per...
 
Notifications
Clear all

Running CGI and Perl Programs Using Absolute

0 Posts
2 Users
0 Reactions
106 Views
(@Venusian)
New Member
Joined: 55 years ago
Posts: 1
Topic starter  

Hi all,

'Scuse the bit of ignorance, but I first tried a secure SSH connection about 10 minutes ago (with a trial version of Absolute). However, the usual means by which I could run a CGI or Perl program under regular Telnet (i.e. by typing in the name of the program while in the program's directory) does not work.

For instance, say I'm in /admin and want to run nph-build.cgi to build a database. I type in nph-build.cgi, hit return, and get an error about an incorrect command.

Any suggestions? I appreciate any hints or tips you may have.

Thanks,

Venusian 🙂


   
ReplyQuote
(@bpence)
Member Admin
Joined: 10 months ago
Posts: 1374
 

The way commands are found in SSH is the same for Telnet. It's all the same shell, after all. Each directory in the PATH environment variable is searched for a file with execute permission. The first one found gets run.

It's similar to a DOS command prompt, however, in DOS, your current directory is implicitly in the search path. In UNIX, this is not the case. To have a command run from the current directory, the dot '.' must be in the path as well. Check to see if you are logged in as root. Root users (by default) do not have '.' in their PATH. It's considered a security risk.

If the only difference is that you're using SSH rather than Telnet, check the difference in your path by typing:

echo $PATH

at the command prompt. There may be some difference in what login scripts are being used when you login different ways.

Keep me posted!!!


   
ReplyQuote
Share: