Can't excexute commands through Jsch connection, which work in Putty
845781Mar 8 2011 — edited Mar 15 2011I 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:)?