![]() |
|
|
|
|
|||||||
| Forums | Portal | Register | Rules & FAQ | Contribute | Members List | Arcade | Search | Today's Posts | Mark Forums Read |
| Shell Programming and Scripting Post questions about KSH, CSH, SH, BASH, PERL, PHP, SED, AWK and OTHER shell scripts here. |
|
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| su command in batch mode | Rajesh Gohad | Shell Programming and Scripting | 3 | 01-25-2007 08:54 PM |
| AT command to batch execute every x hours | naveen79 | UNIX for Dummies Questions & Answers | 1 | 08-31-2005 10:32 AM |
| batch command in a shell script | ivvo | UNIX for Dummies Questions & Answers | 7 | 07-20-2005 06:06 AM |
| trying to read batch process but need some command help | etravels | Shell Programming and Scripting | 1 | 11-19-2003 06:48 AM |
| UNIX Batch FTP Command file | pietro | UNIX for Dummies Questions & Answers | 10 | 08-13-2002 02:44 PM |
|
|
LinkBack | Thread Tools | Display Modes |
|
|||
|
Using Batch command
Hi All
I have a need due time constraint to issue the mail command in background. I have a script that sends a message to a mail address as follows :- echo "$MLINE" | mail -s "$HOST - $TEXT" name@co.com & The script runs frequently and I check to see if the script is active and if it is , it will wait until there is no script running to execute completely. The problem is that due to the time it takes for the above statement to complete, I end up with a lot of waiting scripts and as such end up never executing completely. I have pushing the command in the background, but this did not help. I have searched and found references to the batch command, but cannot get this working. We are on AIx 52. Thx J |
| Forum Sponsor | ||
|
|
|
|||
|
Is your mail command working propely without any problem ?
echo "$MLINE" | mail -s "$HOST - $TEXT" name@co.com what you are getting for this? There may be a problem to resolve domain name and sending mail. & mode will work normally. Give your workout on this. |
|
|||
|
When I check the mailq, or try and send a mail out, It appears to hang and finally responds with the following :-
root@mybox#/exedir>echo "testing" | /usr/sbin/sendmail -v user@mycompany.com WARNING: local host name (mybox) is not qualified; fix $j in config file Thx J |