I understand, but my situation is this,
i am developing on windows client that lists reports that needs to run in unix server.
Each reports when invoke has to trigger sh xxx/xx/xx/x.sh file which will run for 4 to 5 hours.
user should able to trigger any reports one by one, in any order. and result of the command and time taken to execute and errro details if any , should be logged in a txt file.
i have done this using sshclient and threading concept.
but the user does not have permission in prod to execute this.
usually , we switching to group by logon groupuser, then we execute the .sh script file in the putty.
In order to achieve this i tried
1) "logon reportAdmin; /data/admin/report.sh" in the sshclient command but it does not work.
2) tried with shell option in sshclient. able to trigger the report but user should be able to run other reports in the same shell (too many shell logon , will be problem ) and gets the each report error status, result, exit code and timing of the report.
Please help me out...