![]() |
|
|
google unix.com
|
|||||||
| Forums | Register | Forum Rules | Links | Albums | FAQ | Members List | Calendar | 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 and shell scripting languages here. |
More UNIX and Linux Forum Topics You Might Find Helpful
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| plz help me in writing a script | Renjesh | SUN Solaris | 3 | 03-24-2008 08:31 AM |
| File queue script | GMMike | Shell Programming and Scripting | 2 | 10-23-2007 08:19 AM |
| Writing the script | jess_t03 | Shell Programming and Scripting | 1 | 10-10-2007 06:17 AM |
| help writing script | dr46014 | Shell Programming and Scripting | 8 | 08-27-2007 05:08 AM |
| shell script needed for mail queue notification | Nightman | Shell Programming and Scripting | 10 | 03-07-2007 05:37 AM |
![]() |
|
|
LinkBack | Thread Tools | Search this Thread |
Rating:
|
Display Modes |
|
|
|
||||
|
Need Help Writing Script To Email When Fax Queue Goes Down
I need a script that would email me when the fax queue goes down. How would I go about doing this? Our fax queue drops a few times a week and if I don't catch it fairly quickly it gets backed up really fast which makes the users a little unhappy...
I am new to Unix-AIX. We are running Unix-AIX 6 running Activant Eclipse ERP We also have an Exchange Email Server which is used to email orders from the Eclipse System on UNIX. I would appreciate any help on this!! |
|
||||
|
Quote:
The state of the device "modem1" goes to "not running" I run vfxstat -a to see the status of the modems. I run a command that was created before I started here called "fixfax" which restarts the vsi-fax service. Could I do some sort of IF > THEN statement? I don't have much script writing experience at all. Last edited by ITAdmin08; 06-02-2009 at 09:27 AM.. |
|
||||
|
Quote:
looks like this will work. only problem is when fixfax is run it requires you to hit the enter key, is there a way to do that? Could I just leave out fixfax? I really just need it to notify me. |
|
|||||
|
It will be a case of trying a few things, e.g.: Code:
echo "" | fixfax or Code:
fixfax <<EEOOFF EEOFF Note the intentional blank line, which is the carriage return/enter character. or: Put the following into a file called fixfax.exp and call it from the original script instead of calling fixfax directly: Code:
#!/usr/bin/expect spawn /path/to/fixfax expect "please press enter:" send "\r" expect eof Confirm where expect is installed on your system and change the header accordingly. Confirm what text fixfax spits out before wanting the enter key hit and the change the expect "please press enter:" line accordinlgy. Last edited by TonyFullerMalv; 06-03-2009 at 05:08 PM.. Reason: Formatting |
![]() |
| Bookmarks |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|