comp.lang.idl-pvwave archive - RDF feed
type: channel
description: Messages from Usenet group comp.lang.idl-pvwave, compiled by Paulo Penteado
items: remote execution of idl script
items: Re: remote execution of idl script

remote execution of idl script
type: item
description: 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.
creator: trisb
date: 2015-06-17T10:09:00-00:00

Re: remote execution of idl script
type: item
description: 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
creator: Lajos Foldy
date: 2015-06-17T12:51:10-00:00

Re: remote execution of idl script
type: item
description: Hello Lajos, thanks for your suggestion. However, ssh remote_server_name 'idl hw.isc' leads to the same hung-up idl session as outlined in the original post. Best, Flo.
creator: trisb
date: 2015-06-17T13:39:17-00:00

Re: remote execution of idl script
type: item
description: Hello Lajos, thanks for your suggestion. However, ssh remote_server_name 'idl hw.isc' leads to the same hung-up idl session as outlined in the original post. Edit: Same when adding 'exit' in the script. Best, Flo.
creator: trisb
date: 2015-06-17T13:45:54-00:00

Re: remote execution of idl script
type: item
description: Hi Lejos, thanks for your suggestion. However, ssh remote_server_name 'idl hw.isc' ends up in the same stalled IDL session as the original command. Same when adding 'exit' to the script Best, Flo
creator: trisb
date: 2015-06-17T13:48:01-00:00

Re: remote execution of idl script
type: item
description: On Wednesday, June 17, 2015 at 3:48:02 PM UTC+2, trisb wrote: > Hi Lejos, > > thanks for your suggestion. However, > > ssh remote_server_name 'idl hw.isc' > > ends up in the same stalled IDL session as the original command. Same when adding 'exit' to the script > > Best, > Flo Works for me: gandalf:~> ssh frodo 'cat hw.isc' print, "Hello world!" exit gandalf:~> ssh frodo 'idl hw.isc' IDL Version 8.4.1 ... Hello world! gandalf:~> What is in your hw.isc? regards, Lajos
creator: Lajos Foldy
date: 2015-06-17T14:48:33-00:00

Re: remote execution of idl script
type: item
description: This is my hw.isc: ----- print,"Hello world" exit ----- This is the output from running ssh remote_server_name 'idl hw.isc' once it stalls: ----- IDL Version 8.3 (linux x86_64 m64). (c) 2013, Exelis Visual Information Solutions, Inc. Installation number: [redacted] Licensed for use by: [redacted] ----- I also tried to ssh into the host server/headnode, but it results in the same problem. Thanks, Flo.
creator: trisb
date: 2015-06-17T14:55:56-00:00

Re: remote execution of idl script
type: item
description: On Wednesday, June 17, 2015 at 4:55:59 PM UTC+2, trisb wrote: > This is my hw.isc: > ----- > print,"Hello world" > exit > ----- > > This is the output from running > > ssh remote_server_name 'idl hw.isc' > > once it stalls: > ----- > IDL Version 8.3 (linux x86_64 m64). (c) 2013, Exelis Visual Information Solutions, Inc. > Installation number: [redacted] > Licensed for use by: [redacted] > > ----- > > I also tried to ssh into the host server/headnode, but it results in the same problem. > > Thanks, > Flo. Is there any IDL_STARTUP file on the remote host? What does "ssh remote_server_name 'cat hw.isc'" print? If it is OK and the remote host is Linux, you can try ssh remote_server_name 'strace idl hw.isc' This will print a zillion lines but you will see where IDL stalls at the end. I can not guess your setup problem without access to the system. Show my previous working example to your IDL or system admin. regards, Lajos
creator: Lajos Foldy
date: 2015-06-17T15:20:07-00:00

Re: remote execution of idl script
type: item
description: Thanks, Lajos. Displaying hw.isc with cat worked and seems normal. However, doing strace resulted in ----- strace: idl: command not found ----- I guess I will have to go to the sysadmin eventually. Best, Flo.
creator: trisb
date: 2015-06-17T15:33:08-00:00

Re: remote execution of idl script
type: item
description: On 17/06/15 16:20, fawltylanguage@gmail.com wrote: > On Wednesday, June 17, 2015 at 4:55:59 PM UTC+2, trisb wrote: >> This is my hw.isc: >> ----- >> print,"Hello world" >> exit >> ----- >> >> This is the output from running >> >> ssh remote_server_name 'idl hw.isc' >> >> once it stalls: >> ----- >> IDL Version 8.3 (linux x86_64 m64). (c) 2013, Exelis Visual Information Solutions, Inc. >> Installation number: [redacted] >> Licensed for use by: [redacted] >> >> ----- >> >> I also tried to ssh into the host server/headnode, but it results in the same problem. Is it IDL which is hanging or ssh? Try adding an additional command after idl to see if IDL exits, and ssh hangs. If IDL exits then it's definitely something to do with the ssh environment rather than IDL. It may also be X causing the problem, so get rid of X and unset DISPLAY: ssh -x remote_server_name 'unset DISPLAY;idl hw.isc;ls' If IDL exits it should list your files. >> >> Thanks, >> Flo. > > Is there any IDL_STARTUP file on the remote host? > > What does "ssh remote_server_name 'cat hw.isc'" print? > > If it is OK and the remote host is Linux, you can try > > ssh remote_server_name 'strace idl hw.isc' > > This will print a zillion lines but you will see where IDL stalls at the end. > You can't strace IDL, it's a script.
creator: Nigel Wade
date: 2015-06-17T15:49:24-00:00

Re: remote execution of idl script
type: item
description: On Wednesday, June 17, 2015 at 4:49:27 PM UTC+1, Nigel Wade wrote: > On 17/06/15 16:20, fawltylanguage@gmail.com wrote: >> On Wednesday, June 17, 2015 at 4:55:59 PM UTC+2, trisb wrote: >>> This is my hw.isc: >>> ----- >>> print,"Hello world" >>> exit >>> ----- >>> >>> This is the output from running >>> >>> ssh remote_server_name 'idl hw.isc' >>> >>> once it stalls: >>> ----- >>> IDL Version 8.3 (linux x86_64 m64). (c) 2013, Exelis Visual Information Solutions, Inc. >>> Installation number: [redacted] >>> Licensed for use by: [redacted] >>> >>> ----- >>> >>> I also tried to ssh into the host server/headnode, but it results in the same problem. > > Is it IDL which is hanging or ssh? > > Try adding an additional command after idl to see if IDL exits, and ssh hangs. > If IDL exits then it's definitely something to do with the ssh environment rather than IDL. > > It may also be X causing the problem, so get rid of X and unset DISPLAY: > > ssh -x remote_server_name 'unset DISPLAY;idl hw.isc;ls' > > If IDL exits it should list your files. Thanks for the suggestion, Nigel. It stalls at the same point as before, ls is not being executed.
creator: trisb
date: 2015-06-17T15:57:23-00:00

Re: remote execution of idl script
type: item
description: On Wednesday, June 17, 2015 at 5:49:27 PM UTC+2, Nigel Wade wrote: > You can't strace IDL, it's a script. Have you tried it? :-) The idl command is a shell script and it uses the shell's built-in exec to run the actual binary. The binary simply replaces the shell, no new process is created. strace works just fine. regards, Lajos
creator: Lajos Foldy
date: 2015-06-17T16:08:13-00:00

Re: remote execution of idl script
type: item
description: On 17/06/15 17:08, fawltylanguage@gmail.com wrote: > On Wednesday, June 17, 2015 at 5:49:27 PM UTC+2, Nigel Wade wrote: > >> You can't strace IDL, it's a script. > > Have you tried it? :-) The idl command is a shell script and it uses the shell's built-in exec to run the actual binary. The binary simply replaces the shell, no new process is created. strace works just fine. > I didn't actually. I was sure I'd tried this in the past when tracing problems and found it didn't work because idl is a script. However, when I do try it it works as advertised. "Memory fault, core dumped"
creator: Nigel Wade
date: 2015-06-18T12:40:56-00:00

Re: remote execution of idl script
type: item
description: On 17/06/15 16:57, trisb wrote: >> Is it IDL which is hanging or ssh? >>> >>> Try adding an additional command after idl to see if IDL exits, and ssh hangs. >>> If IDL exits then it's definitely something to do with the ssh environment rather than IDL. >>> >>> It may also be X causing the problem, so get rid of X and unset DISPLAY: >>> >>> ssh -x remote_server_name 'unset DISPLAY;idl hw.isc;ls' >>> >>> If IDL exits it should list your files. > Thanks for the suggestion, Nigel. It stalls at the same point as before, ls is not being executed. > That makes me think that there's something different about how the idl command is working on that remote system. Also, the fact that Lajos suggestion to use strace fails to locate the idl command adds weight to this. Do you know how the idl command is configured on that system?
creator: Nigel Wade
date: 2015-06-19T08:26:19-00:00

Re: remote execution of idl script
type: item
description: On Friday, June 19, 2015 at 9:26:20 AM UTC+1, Nigel Wade wrote: > On 17/06/15 16:57, trisb wrote: >>> Is it IDL which is hanging or ssh? >>>> >>>> Try adding an additional command after idl to see if IDL exits, and ssh hangs. >>>> If IDL exits then it's definitely something to do with the ssh environment rather than IDL. >>>> >>>> It may also be X causing the problem, so get rid of X and unset DISPLAY: >>>> >>>> ssh -x remote_server_name 'unset DISPLAY;idl hw.isc;ls' >>>> >>>> If IDL exits it should list your files. >> Thanks for the suggestion, Nigel. It stalls at the same point as before, ls is not being executed. >> > > That makes me think that there's something different about how the idl command is working on that remote system. > Also, the fact that Lajos suggestion to use strace fails to locate the idl command adds weight to this. > > Do you know how the idl command is configured on that system? Thanks. Indeed, it was a problem with how the idl call related to the execution of idl. Problem solved with help of the sys admin. Flo.
creator: trisb
date: 2015-06-23T12:07:44-00:00