Skip to Main Content

New to Java

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

Can't excexute commands through Jsch connection, which work in Putty

845781Mar 8 2011 — edited Mar 15 2011
I used Jsch,J2SSH,ganymed... and the problem is the same,{ i guess the soliution must be extremely simple:)} when i connect to the server using Jsch from netbeans and excecute commands like command="date;date;date;lrp_list"; i get:

usr/bin/ksh: lrp_list: not found //Why?????
Tue 8 Mar 13:29:24 2011
Tue 8 Mar 13:29:24 2011
Tue 8 Mar 13:29:24 2011
exit-status: 127

But when I do the same thing with Putty everything works fine!!! I mean all commands work including: lrp_list(lists servers); getWasLxxx(search algorythm); newgrp server1(probably load server for work)

But when I try to run same commands through Jsch nothing works lol( usually I get usr/bin/ksh: getWasLxxx: not found or everything freezes after newgrp server1); these commands i guess are not standart (very specific search scripts/commands, which you can run on Unix server, not standart...)
I'm new to Unix connections.
ideas:)?
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Apr 12 2011
Added on Mar 8 2011
6 comments
3,705 views