Page 1 of 1

SSH stty error

Posted: Wed Jul 02, 2014 10:36 am
by Trinity_Chris
When calling a shell script using the ExecSSH task I get the following error in the job log:

Code: Select all
2/7/14 16:02:45               ERROR     stty: tcgetattr: A specified file does not support the ioctl system call.
Is there an easy way to stop this?

I've already looked at the .profiles and can't see any stty calls

Thanks
Chris

Re: SSH stty error

Posted: Thu Jul 03, 2014 10:55 am
by Support_Rick
Chris,

It's hard to tell what is happening just from the information you posted.

Can you send us a copy of your XML and the Job log (in Debug mode) so that we can review to see if there is an issue that we can help with.

Thanks!

Re: SSH stty error

Posted: Thu Jul 03, 2014 11:05 am
by Trinity_Chris
The code I use to call the unix script is:

Code: Select all
<execSSH label="BATCH_APAY_DISBURSEMENTS" resourceId="${SCP_SERVER}" command="~/batch/batch_apay_disbursements.sh ${ADMINISTRATOR_USERNAME} ${ADMINISTRATOR_PASSWORD} ${ADMINISTRATOR_BUSGROUP}" version="1.0" onError="continue" />
Which work and does start the process.

This is an extract of the output from calling the script in debug mode:
03-Jul-2014 17:03:21 INFO Start Date and Time: 3/7/14 17:03:21
03-Jul-2014 17:03:21 INFO Job Number: 1000000000105
03-Jul-2014 17:03:21 INFO Project Name: /RETA Batch DEV/Rerun Disbursements
03-Jul-2014 17:03:21 INFO Submitted By: chris.evans
03-Jul-2014 17:03:21 INFO GoAnywhere Director 4.6.1 running on Windows Server 2012 6.2 (amd64)
03-Jul-2014 17:03:21 INFO ******************** Debug Mode ********************
03-Jul-2014 17:03:30 INFO Executing task 'execSSH 1.0 (BATCH_APAY_DISBURSEMENTS)'
03-Jul-2014 17:03:30 ERROR stty: tcgetattr: A specified file does not support the ioctl system call.
03-Jul-2014 17:03:30 INFO 20140703 170330:batch_apay_disbursements.sh:START
03-Jul-2014 17:03:30 INFO 20140703 170330:batch_apay_disbursements.sh:Starting program czmp222
03-Jul-2014 17:03:30 INFO Disbursement Interface Process running. Please wait...
03-Jul-2014 17:03:31 INFO 0 Records output to MP_BACSREC
03-Jul-2014 17:03:31 INFO 0 Records output to MP_ACCOUNTING
03-Jul-2014 17:03:31 INFO Disbursement Interface Process completed successfully.
03-Jul-2014 17:03:31 INFO 20140703 170330:batch_apay_disbursements.sh:Program czmp222 completed successfully
03-Jul-2014 17:03:31 INFO 20140703 170330:batch_apay_disbursements.sh:Starting program czmp264
03-Jul-2014 17:03:31 INFO Processing Started.....
03-Jul-2014 17:03:31 INFO 0 records output to file
03-Jul-2014 17:03:31 INFO Processing has completed successfully
03-Jul-2014 17:03:31 INFO 20140703 170331:batch_apay_disbursements.sh:Program czmp264 completed successfully
03-Jul-2014 17:03:31 INFO 20140703 170331:batch_apay_disbursements.sh:Starting program czmp223
03-Jul-2014 17:03:31 INFO BACS Extract running. Please wait...
03-Jul-2014 17:03:31 INFO Written 0 records to the BACS Output File.
03-Jul-2014 17:03:31 INFO Process completed successfully.
03-Jul-2014 17:03:31 INFO 20140703 170331:batch_apay_disbursements.sh:Program czmp223 completed successfully
03-Jul-2014 17:03:31 INFO 20140703 170331:batch_apay_disbursements.sh:END
03-Jul-2014 17:03:31 INFO The Command executed successfully with return code '0'.
03-Jul-2014 17:03:31 INFO Finished task 'execSSH 1.0 (BATCH_APAY_DISBURSEMENTS)'

Re: SSH stty error

Posted: Thu Jul 03, 2014 11:42 am
by Support_Rick
Chris,

This error seems to be an issue with running the command on the remote server, not the connection to that server via the ExecSSH Task.

Look into wrapping your command in Double Quotes ("command") then trying the project again.

Re: SSH stty error

Posted: Fri Jul 11, 2014 5:21 am
by Trinity_Chris
Hi Rick,

Double quotes didn't seem to help on this one.

It looks like it's something on the Unix side rather than the GoAnywhere side so I'll keep digging.

C.

Re: SSH stty error

Posted: Fri Jul 11, 2014 3:00 pm
by Jonathan
Hi Chris,

What shell are you using on the unix side?

Re: SSH stty error

Posted: Tue Jul 15, 2014 4:00 am
by Trinity_Chris
it's the bourne shell