LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Go Back   LinuxQuestions.org > Forums > Other *NIX Forums > Solaris / OpenSolaris
User Name
Password
Solaris / OpenSolaris This forum is for the discussion of Solaris, OpenSolaris, OpenIndiana, and illumos.
General Sun, SunOS and Sparc related questions also go here. Any Solaris fork or distribution is welcome.

Notices


Reply
  Search this Thread
Old 10-16-2007, 08:57 AM   #1
frzburn
Member
 
Registered: Feb 2004
Location: Canada
Distribution: FreeBSD
Posts: 38

Rep: Reputation: 15
Here-doucment, not a tty


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!
 
Old 10-17-2007, 06:04 PM   #2
jvhiii
LQ Newbie
 
Registered: Aug 2007
Posts: 7

Rep: Reputation: 1
I have no idea, but does it make a difference if your first line is:

#!/usr/bin/env bash

instead?
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
a tty???? rasejo Linux - General 5 02-23-2009 01:01 AM
[SOLVED] Tty soplin Linux - General 2 05-11-2007 08:20 AM
I it possible to kill a tty or find which tty is being using by which process? geletine Linux - Software 2 01-15-2006 08:40 AM
change tty => system crashes (ati driver/tty resolution) mosca Debian 6 08-05-2004 07:37 AM
How to get into different tty? Noerr Linux - General 3 05-29-2002 06:49 AM

LinuxQuestions.org > Forums > Other *NIX Forums > Solaris / OpenSolaris

All times are GMT -5. The time now is 03:54 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration