Sponsored Content
Full Discussion: at reminder script
Homework and Emergencies Homework & Coursework Questions at reminder script Post 302560599 by csharp100 on Friday 30th of September 2011 09:46:23 AM
Old 09-30-2011
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..
 

2 More Discussions You Might Find Interesting

1. Homework & Coursework Questions

Reminder script not working...

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)
Discussion started by: csharp100
11 Replies

2. OS X (Apple)

A simple reminder script for beginners to shell scripting.

(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)
Discussion started by: wisecracker
3 Replies
write(1)						      General Commands Manual							  write(1)

Name
       write - write message to another user

Syntax
       write user [ttyname]

Description
       The command copies lines from your terminal to that of another user.  When first called, it sends the message
       Message from yoursystem!yourname yourttyname...

       The recipient of the message should write back at this point.  Communication continues until an end of file is read from the terminal or an
       interrupt is sent.  At that point writes `EOT' on the other terminal and exits.

       If you want to write to a user who is logged in more than once, the ttyname argument may be used to indicate the appropriate terminal name.

       Permission to write may be denied or granted by use of the mesg command.  At the outset writing is allowed.  Certain commands, in  particu-
       lar and disallow messages in order to prevent messy output.

       If the character `!' is found at the beginning of a line, calls the shell to execute the rest of the line as a command.

       The  following  protocol  is  suggested for using when you first write to another user, wait for him to write back before starting to send.
       Each party should end each message with a distinctive signal. The letter `o' is the convention for `over' which indicates that the  message
       is complete.  The letters `oo' are the convention for `over and out' which is used when the conversation is about to be terminated.

Files
       /etc/utmp to find user
       /bin/sh	      to execute `!'

See Also
       mail(1), mesg(1), who(1)

																	  write(1)
All times are GMT -4. The time now is 07:22 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy