Sponsored Content
Top Forums Shell Programming and Scripting [Help] Bash script that runs in the background and checks for mails... Post 302986248 by jim mcnamara on Tuesday 22nd of November 2016 04:26:20 PM
Old 11-22-2016
Do not post classroom or homework problems in the main forums. Homework and coursework questions can only be posted in this forum under special homework rules.

Please review the rules, which you agreed to when you registered, if you have not already done so.

More-than-likely, posting homework in the main forums has resulting in a forum infraction. If you did not post homework, please explain the company you work for and the nature of the problem you are working on.

If you did post homework in the main forums, please review the guidelines for posting homework and repost.

Thank You.

The UNIX and Linux Forums.
 

9 More Discussions You Might Find Interesting

1. Solaris

Best practice to run bash script in background

nohup /bin/bassh $HOME/scripts/test.sh > $HOME/log/test.log 2>&1 & nohup $HOME/scripts/test.sh > $HOME/log/test.log 2>&1 & Which is the good practice to run a script in background of above two ? does the first one will have any overhead on the system ? our system is SunOS 5.10... (2 Replies)
Discussion started by: mmasals
2 Replies

2. Shell Programming and Scripting

[Bash] MD5 Checks with Script.

Hi. I'm triyng to make a Bash Script that checks (recursively) the MD5 from all the files in a certain directory and compare them against some other check that should be already done and saved in a file. I've reached to the point where i have the MD5 from the file and the MD5 that the script... (1 Reply)
Discussion started by: BiFo
1 Replies

3. Shell Programming and Scripting

[bash] run a shell who runs commands

Hi all. On X11 I'm on a shell ...shell_1 (/bin/bash). From here I want to open another shell window shell_2 who executes commands like "ls -l" or programs like ". /program"... so the "result" of commands shows in shell_2 window and not in shell_1. Is that possible ? (4 Replies)
Discussion started by: jerold
4 Replies

4. Shell Programming and Scripting

Need to run a bash script that logs on as a non-root user and runs script as root

So I have a script that runs as a non-root user, lets say the username is 'xymon' . This script needs to log on to a remote system as a non-root user also and call up a bash script that runs another bash script as root. in short: user xymon on system A needs to run a file as root user and have... (2 Replies)
Discussion started by: damang111
2 Replies

5. Shell Programming and Scripting

Script to do the following checks

Hi , I need a script for processing below scenario. I have to check daily by doing ftp IP to check it is logging or not. So i want this activity to be automated such that if login succesful i will get "FTP LOGIN SUCCESS" in a log file and if fails i want the error message in the same log... (1 Reply)
Discussion started by: sv0081493
1 Replies

6. UNIX for Dummies Questions & Answers

Bash script that runs permanently

Hello,Geeks How i can run my script permanently. once i run my script it should be working always. like installation. for example if i run one command once in bash script. it must be permanently run in my linux machine.. Thanks in Advance (2 Replies)
Discussion started by: dhanda2601
2 Replies

7. Shell Programming and Scripting

[BASH] Script to manage background scripts (running, finished, exit code)

Heyas, Since this question (similar) occur every now and then, and given the fact i was thinking about it just recently (1-2 weeks) anyway, i started to write something :p The last point for motivation was... (17 Replies)
Discussion started by: sea
17 Replies

8. Shell Programming and Scripting

Bash tcsh Script runs in terminal but not folder

So, I made a script beginning with #!/bin/bash on gedit. And I double clicked it to run in terminal and I end up with "The child process exited normally with status 127" and "command not found". If I run the same script from the terminal as "tcsh (script name)" it runs just fine. If I... (8 Replies)
Discussion started by: OntorEska
8 Replies

9. Shell Programming and Scripting

Need Multiple checks inside if condition in a bash shell script

Hi, I need to perform the untar and rm operation if the file found is a .tar and does not have test.tar or hello.tar as the file names. Below is the loop to check the same. for tf in *.tar do if ] then found=1 ... (1 Reply)
Discussion started by: mohtashims
1 Replies
newmail(1)						      General Commands Manual							newmail(1)

NAME
newmail - notify users of new mail in mailboxes SYNOPSIS
interval] [file-spec]... DESCRIPTION
The utility monitors your incoming mailbox or specified mail folders. The basic operation is that the program checks the folders each interval seconds (default 60) and lists any new mail that has arrived in any of the mailboxes, indicating the sender's name, and the subject of the message. Without any options, runs in the background at a default interval of 60 seconds to monitor the user's incoming mailbox. So that they are suitable for display on an already active screen, messages are prefixed with a pair of pointer characters as follows: If there is no subject, the message is displayed. If there is more than one folder, output lines are prefixed by the folder-name or the prefix string specified by file-spec. runs until you log out or explicitly kill it. It can internally reset itself if the mailbox shrinks in size and then grows again. Options recognizes the following options: Set the time interval between mailbox checks to the value specified, in seconds. The default is 60. interval must be less than 2^32 seconds. If it is set to less than 10 seconds, warns that such short intervals are not recommended. Run the program within the current window in the foreground with a more succinct output format. The output formats become: Operands recognizes the following operand: file-spec Specifies the name of a folder and an optional prefix string, in the form: Metacharacters such as and indicate the folder directory. The default is the value of the environment variable or EXAMPLES
Check incoming mailbox every 60 seconds: Check incoming mailboxes of and every 15 seconds for new messages. Monitor the incoming mailbox of user and the folder in your mail directory called Prefix all new messages in the incoming mailbox of with the string and the new messages in the folder with Also, monitor folder AUTHOR
was developed by HP. newmail(1)
All times are GMT -4. The time now is 06:56 PM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy