VKontakte.DJ
forum traveling
 

Celestial Software

...better by design

Home Support SSH Client Forums
Welcome, Guest
Please Login or Register.    Lost Password?
Running CGI and Perl Programs Using Absolute (1 viewing) (1) Guest
Go to bottom Favoured: 0
TOPIC: Running CGI and Perl Programs Using Absolute
#660
Running CGI and Perl Programs Using Absolute 22 Years ago  
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 :-)
Venusian (User)
Fresh Boarder
Posts: 1
graphgraph
User Offline Click here to see the profile of this user
Logged Logged  
 
The administrator has disabled public write access.  
#661
Re: Running CGI and Perl Programs Using Absolute 22 Years ago  
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!!!
bpence (Admin)
Admin
Posts: 1404
graph
User Offline Click here to see the profile of this user
Logged Logged  
 
Brian Pence
Celestial Software
SSH , SFTP, and Telnet in a tabbed interface for Windows XP, Vista, Mobile, and others
 
The administrator has disabled public write access.  
Go to top