Link to home
Start Free TrialLog in
Avatar of bryanlloydharris
bryanlloydharris

asked on

can't create a windows service

Hi,

I tried to create a windows service using the srvany program, but it didn't work.

Here is the command line I would like to make into a service.
c:\windows\plink.exe -T -i c:\windows\pk.ppk -R 1729:foo.com:80 bryanh@server

It is a command to tunnel a port over ssh.  It doesn't run in the background, it just waits for me to press [control]-c.  While it is running it forwards information to localhost:1729 to port 80 on foo.com.

I would like to always run this when the computer is on.  It doesn't have to be a service if there is another way.  Does anybody know how to do this?

Thanks!
ASKER CERTIFIED SOLUTION
Avatar of sakuya_su
sakuya_su

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of sakuya_su
sakuya_su

or create a Shortcut with "c:\windows\plink.exe -T -i c:\windows\pk.ppk -R 1729:foo.com:80 bryanh@server" and stick it into the startup folder
Avatar of bryanlloydharris

ASKER

Where is the Run registry key?