Sponsored Content
Top Forums Shell Programming and Scripting Need Help Writing Script To Email When Fax Queue Goes Down Post 302322407 by TonyFullerMalv on Wednesday 3rd of June 2009 04:04:43 PM
Old 06-03-2009
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
 

10 More Discussions You Might Find Interesting

1. UNIX for Dummies Questions & Answers

Fax Software

Do you know of any good and inexpensive Fax Software Package that can run on Unix and AIX? I will be using an external Modem attach to one of the system's serial port. I will be using it for sending faxes “only” Thanks for your help (1 Reply)
Discussion started by: falcon2460
1 Replies

2. UNIX for Advanced & Expert Users

Fax on Solaris

Hi all, I am running an application on Solaris 8. I want to send the output from this application as fax. To achive this i need to do add the fax as a printer on the unix machine. I want to know is : - What are the settings required to be done in order to make my server able to send fax... (0 Replies)
Discussion started by: zing
0 Replies

3. Solaris

fax hardware

hiho, do you know a hardware vendor which provide certified hardware for sun solaris/sparc with Class 2 or Class 1 compatible faxmodems pci-cards? i found many software for that purpose but no hardware... :( and the hcl on bigadmin only speaks about x86... thanks a lot greetings PRESSY (2 Replies)
Discussion started by: pressy
2 Replies

4. Shell Programming and Scripting

Fax Component

I would like to build a small fax component in Java or Perl. I have the javax.comm. (rxtx gnu.io) for Java for serial connection and get send a message to my fax were the light goes on and port is taken, but after that I am in the dark. Does anyone have some reference as to where I can get some... (1 Reply)
Discussion started by: photon
1 Replies

5. Shell Programming and Scripting

File queue script

Dear Gurus, I have an application that sends me thousands of small files. I need to write a script that sleeps for some time untile enough files have arrived then concatenate (n) files into 1 big file, then send that big file to a program to process it. For example, if I have the following... (2 Replies)
Discussion started by: GMMike
2 Replies

6. AIX

fax

aix5.3 - how do i test moden that just install/configure in aix5.3, and also how do i send fax ? (0 Replies)
Discussion started by: tjmannonline
0 Replies

7. UNIX for Advanced & Expert Users

Fax problem

Using the sendmail or other commands i need to send the attachment files for the Fax? Please provide the some example. (3 Replies)
Discussion started by: kingganesh04
3 Replies

8. UNIX for Dummies Questions & Answers

can we send fax to remote fax machine by lpr?

Hi all, Our application has to send Fax to our cutomer Fax number . I am using lpr -P faxser:test-fax <<dos format file>> I tested on our network Fax numbers . Its working fine. But when i try to send outside our network , its not sending all files are sitting in... (1 Reply)
Discussion started by: help_need
1 Replies

9. Shell Programming and Scripting

Detect if script starts from queue

Dear community, what I'm try to do is deny users to run a script without parameters from command bash, but the same script should run without parameters only from crontab. Example runs by crontab:*/5 * * * * /tmp/script.sh Here the normal execution starts every 5 minutes Example #1 runs by... (16 Replies)
Discussion started by: Lord Spectre
16 Replies

10. HP-UX

Sendmail FAX configuration

I've been trying to send FAXs from an HP_UX server using sendmail via an Esker FAX server. However if I try to include FAX configuration details in the receipient address it fails. See following string for general format... (1 Reply)
Discussion started by: JohnMair
1 Replies
LOCALE_GET_PRIMARY_LANGUAGE(3)						 1					    LOCALE_GET_PRIMARY_LANGUAGE(3)

Locale::getPrimaryLanguage - Gets the primary language for the input locale

	Object oriented style

SYNOPSIS
publicstatic string Locale::getPrimaryLanguage (string $locale) DESCRIPTION
Procedural style string locale_get_primary_language (string $locale) Gets the primary language for the input locale PARAMETERS
o $locale - The locale to extract the primary language code from RETURN VALUES
The language code associated with the language or NULL in case of error. EXAMPLES
Example #1 locale_get_primary_language(3) example <?php echo locale_get_primary_language('zh-Hant'); ?> Example #2 OO example <?php echo Locale::getPrimaryLanguage('zh-Hant'); ?> The above example will output: zh SEE ALSO
locale_get_script(3), locale_get_region(3), locale_get_all_variants(3). PHP Documentation Group LOCALE_GET_PRIMARY_LANGUAGE(3)
All times are GMT -4. The time now is 07:53 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy