Use and complete the template provided. The entire template must be completed. If you don't, your post may be deleted!
1. The problem statement, all variables and given/known data:
Hi everyone, The script I did below works just fine. My problem is when the script is executed, I receive 2 emails. One is from the script and the other is from our Sun OS system named admiral. The Sun os is ver. 5.10. The mail message I receive is:
"Your "at" job on admiral
"/var/spool/cron/atjobs/1317352641.a"
produced the following output:
stty: : Inappropriate ioctl for device
stty: : Inappropriate ioctl for device
I cannot determine your terminal name. No reply possible.
Warning: You have your terminal set to "mesg -n". No reply possible."
I am trying to figure out what "stty: :In appropriate ioctl for device" means. Can anyone help? Thanks!
2. Relevant commands, code, scripts, algorithms:
at command
3. The attempts at a solution (include all code and scripts):
4. Complete Name of School (University), City (State), Country, Name of Professor, and Course Number (Link to Course):
UMSL, St Louis, MO, USA, Antonogli, cs2750
Note: Without school/professor/course information, you will be banned if you post here! You must complete the entire template (not just parts of it).
That did not solve my problem. I may not have explained it correctly so I will try again. The script is to send a reminder to me using the at command. If I am online, then it will write to me. If I am offline, then it will email me. If I am online, the script will "interrupt me" with the reminder but it also sends a mail message with the aforementioned, "stty: :Inappropriate ioctl for device". If I am offline, the script mails me two messages. The original reminder and the "stty: :Inappropriate ioctl for device" message.
When I tried the above code suggested by Corona688, I got no message and received a mail message, "Ambiguous output redirect." Therefor I am stuck.
Last edited by csharp100; 09-30-2011 at 12:36 PM..
---------- Post updated at 02:02 PM ---------- Previous update was at 02:00 PM ----------
Quote:
Originally Posted by csharp100
That did not solve my problem. I may not have explained it correctly so I will try again.
I think I understood in the first place.
write is trying to terminal commands on a non-terminal device(being run from 'at', it has no terminal!) which isn't the end of the world, but also blabs error messages when it does, which isn't what you want.
The redirection I showed you ought to work, but may have gone into the wrong place, can you show me exactly what you tried?
---------- Post updated at 02:02 PM ---------- Previous update was at 02:00 PM ----------
I think I understood in the first place.
write is trying to terminal commands on a non-terminal device(being run from 'at', it has no terminal!) which isn't the end of the world, but also blabs error messages when it does, which isn't what you want.
The redirection I showed you ought to work, but may have gone into the wrong place, can you show me exactly what you tried?
I tried,
and
I did take out the
on both tries.
When I tried both, I got the same message mailed to me and did not get my write message at all. It also included an "Ambiguous redirection" in the mail messages as well.
The script should be korn
Sorry, for some reason I missed that in the cut and paste.
The system tells me:
Come to think of it, wonder if that is my problem?
(Apologies for any typos.)
Well hands up those who have been in the following situation(s):-
Your partner, (in my case the missus), sees that you are messing
with your machine and says something like, "can you keep an eye
on the dinner, I am going out shopping", and you look up glazed
eyed... (3 Replies)
Use and complete the template provided. The entire template must be completed. If you don't, your post may be deleted!
1. The problem statement, all variables and given/known data:
We have been tasked to write an at reminder script that will write or echo a message to more than one user. What... (11 Replies)