I just want you to know that the solution of my problem was to change the prompt!
When I call the remote bash via telnet to change the directory it expacted the old prompt which was guilty while login: Prompt => '/\[datagate\]\/KOMM\/datagate > But after changing the directory the prompt was modified. So the solution to call a simple "ls" is: @ra = $t->cmd ( String => 'ls', Prompt => '/\[datagate\]\/KOMM\/datagate\/STALP\/PERL\/BERT > /'); print @ra; And to call a routine is: $rs = $t->cmd ( String => 'komm-test.pl', Prompt => '/\[datagate\]\/KOMM\/datagate\/STALP\/PERL\/BERT > /'); Hope this helps anybody who'll encounter the same problem ... MIND THE PROMPT ;-) Thanks all for help Gruss Christian -- Christian Stalp Institut für Medizinische Biometrie, Epidemiologie und Informatik (IMBEI) Obere Zahlbacher Straße 69 55131 Mainz Tel.: 06131/ 17-6852 E-Mail: [EMAIL PROTECTED] Internet: www.imbei.de -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] <http://learn.perl.org/> <http://learn.perl.org/first-response>