Re: remote execution of idl script [message #91204 is a reply to message #91203] |
Wed, 17 June 2015 05:51   |
Lajos Foldy
Messages: 176 Registered: December 2011
|
Senior Member |
|
|
On Wednesday, June 17, 2015 at 12:09:05 PM UTC+2, trisb wrote:
> Hello IDL hive mind,
>
> after going through the post archives, I could not find a suitable solution to my problem, so here comes a new thread.
>
> I have an IDL script file ~/hw.isc that contains only
> print,"Hello world"
>
> Now I want to execute this IDL script (or command, to start with) from the shell of a remote computer. My IDL version is 8.3 and I am operating under a UNIX system. If I do the following, it works:
>
> ssh remote_server_name
> idl -e "@~/hw.isc"
>
> It correctly starts IDL, prints "Hello world", and exits.
>
> Now I want to have that as a batch execution from my home server and want to use a one-liner:
>
> ssh remote_server_name 'idl -e "@~/hw.isc"'
>
> What happens is that it logs into the remote server, starts IDL, but hangs upon startup after the license server is loaded. No X commands are used in the script nor the startup file. The result is the same if I use -X, -Y, or >& outfile in the IDL call command to redirect screen output.
>
> Thanks for your help!
> Flo.
Try "ssh ... idl hw.isc' (and append "exit" to hw.isc).
regards,
Lajos
|
|
|