SSH stty error

Post any question you may have in regards to GoAnywhere Director and let our talented support staff and other users assist you.
7 posts Page 1 of 1

Trinity_Chris

Posts: 14
Joined: Wed May 21, 2014 9:00 am

Post by Trinity_Chris » Wed Jul 02, 2014 10:36 am
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

Support_Rick

Support Specialist
Posts: 590
Joined: Tue Jul 17, 2012 2:12 pm
Location: Phoenix, AZ

Post by Support_Rick » Thu Jul 03, 2014 10:55 am
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!
Rick Elliott
Lead Solutions Consultant
(402) 944.4242
(800) 949-4696

Trinity_Chris

Posts: 14
Joined: Wed May 21, 2014 9:00 am

Post by Trinity_Chris » Thu Jul 03, 2014 11:05 am
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)'

Support_Rick

Support Specialist
Posts: 590
Joined: Tue Jul 17, 2012 2:12 pm
Location: Phoenix, AZ

Post by Support_Rick » Thu Jul 03, 2014 11:42 am
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.
Rick Elliott
Lead Solutions Consultant
(402) 944.4242
(800) 949-4696

Trinity_Chris

Posts: 14
Joined: Wed May 21, 2014 9:00 am

Post by Trinity_Chris » Fri Jul 11, 2014 5:21 am
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.

Jonathan

Posts: 18
Joined: Wed Jan 02, 2013 5:27 am
Location: Mapledurham, UK

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

What shell are you using on the unix side?

Trinity_Chris

Posts: 14
Joined: Wed May 21, 2014 9:00 am

Post by Trinity_Chris » Tue Jul 15, 2014 4:00 am
it's the bourne shell
7 posts Page 1 of 1