Jump to content
Sign in to follow this  
kev51773

Running a script via ssh

Recommended Posts

kev51773

Hi all,

I'm trying to set some things up so I can remote control them from my phone via ssh. I have a bunch of scripts that run successfully when ran locally with a cygwin bash shell but not when logged in via ssh. I guess this is some kind of security/user problem.

As a simple example I can compile a one line script containing only - beep()

If in a cygwin bash shell I run - ./beep.exe it executes and I hear the beep. If I log in (to the same user account) via ssh and execute the same command it appears to execute but no beep is heard.

Any ideas as to how I could work around this problem to make this script work when executed via ssh?

I'm open to any suggestions.

Share this post


Link to post
Share on other sites
duleorlovic

Use "screen" linux command. Just create screen on windows cygwin and attach to it from ssh and it will work.

Share this post


Link to post
Share on other sites
guritaburongo

i have the same problem but over windows command line, scripts runs locally without problems, but over ssh i cannot run them, i tried as scrpits and complied but none of them works

other details:

win8

bitvise sshserver

any clue?

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
Sign in to follow this  

×

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.