LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 04-08-2001, 10:43 PM   #1
aethereal
Member
 
Registered: Dec 2000
Location: Seattle
Distribution: Red Hat 8.0
Posts: 41

Rep: Reputation: 15
Question


Hi!

I'm using bash, and I simply want to use the "at" command to schedule a very simple job for a particular time.

The problem I'm coming across is that bash automatically sends the standard output (and error output) to the user via sendmail. Unfortunately, I don't have sendmail setup on my machine (and several people have told me not to use sendmail, since it sucks). Consequently, I do not receive any notification of what the my simple job has done.

Does anybody have any good workaround ideas for this?

[Why couldn't bash do what several of the other major shells do and allow the user to specify the mode of notification (e.g., NOT via sendmail).]

[Edit: I just tried changing my shell to tcsh, and the effect seems to be the same. So, this instead appears to be a Linux issue rather than a bash issue.]

I'm probably overlooking something obvious, but this is my present take on things....

Thanks,
Ben

[Edited by aethereal on 04-08-2001 at 11:57 PM]
 
Old 02-01-2005, 02:42 PM   #2
Disillusionist
Senior Member
 
Registered: Aug 2004
Location: England
Distribution: Ubuntu
Posts: 1,039

Rep: Reputation: 98
Is this post still open?

You should be able to redirect the output in the usual way:

program > output

To send standard error messages to the same file :

program > output 2>&1

To run this from at:

at -t 02012100 `program > output 2>&1`
 
Old 02-01-2005, 04:13 PM   #3
acid_kewpie
Moderator
 
Registered: Jun 2001
Location: UK
Distribution: Gentoo, RHEL, Fedora, Centos
Posts: 43,417

Rep: Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985
wow, that's nearly 4 years old... i think it's safe to say it's NOT open..... kind as it is to reply, i really don't there's there's much benefit! how on earth did you find this thread??
 
Old 02-02-2005, 12:32 AM   #4
Disillusionist
Senior Member
 
Registered: Aug 2004
Location: England
Distribution: Ubuntu
Posts: 1,039

Rep: Reputation: 98
I listed all threads with 0 replies and went to the last page.

There are thousands of pages of unanswered posts!

Thought I'd reply to a couple

Bucket and the sea analogy...
 
  


Reply



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
bash script: using "select" to show multi-word options? (like "option 1"/"o zidane_tribal Programming 7 12-19-2015 01:03 AM
"bash: rpm: command not found" errom when trying to install any package sandeepchau123 Linux - General 16 07-06-2008 03:58 AM
"service __ restart" bash command isn't working case1984 Linux - Newbie 9 04-10-2008 02:35 PM
Bash: "after" or "waitfor" command enemorales Programming 3 06-15-2005 12:04 AM
Bash Script: Problem running variable command containing "" Paasan Programming 2 01-21-2004 01:45 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 11:02 AM.

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