Hi guys,
I'm trying to do a simple script on a Solaris server. It works on other servers, but I have an issue on this one...
Here's the script:
Code:
#!/usr/bin/bash
/fnsw/bin/SEC_tool > test.out 2>&1 << !SEC!
logoff user=USERNAME
quit
!SEC!
exit 0
And here's test.out contents after the script's execution:
Code:
1 logoff user=USERNAME
Not a tty.
I must use here-documents, because this command (SEC_tool) doesn't take any parameters...
Usually it works well, but here I have this "Not a tty" message. I googled a lot, but didn't find how to solve this.
Thanks!