HylaFAX The world's most advanced open source fax server

[Date Prev][Date Next][Thread Prev][Thread Next] [Date Index] [Thread Index]

[hylafax-users] Having problems running sendfax from a bash script.



First, I'm new to writing bash scripts.

I have a string name "commandline" that contains the following:

sendfax -f jwarren@xxxxxxxxxxxxx -n -D -i 010000TESTFL -c "This is a test fax" -d Parmacist@13106421032 /var/spool/hylafax/windows/jobs/QueuedT/00TESTFL.pdf

If I do the following in a bash script it fails with "is: Can not open file"

$command

If I remove the  (  -c "This is a test fax"  )  or change it to  (  -c "test"   ) it works.

If I execute the same line outside of the script it also works.

Is the Bash script taking out the "'s and if so how do I keep it from doing this?


Thanks

John Warren

Network Operations Administrator
Prudent Rx Inc.
100 Corporate Pointe, Suite 395
Culver City, CA 90230

( +1.310.642.1700 x121
+1.310.642-1701
E: jwarren@xxxxxxxxxxxxx

**Notice of Confidentiality**

Please note that the information contained in this message may be privileged and confidential and protected from disclosure under the law, including the Health Insurance Portability and Accountability Act (HIPAA). If the reader of this message is not the intended recipient, or an employee or agent responsible for delivering this message to the intended recipient, you are hereby notified that any dissemination, distribution or copying of this communication is strictly prohibited and may subject you to criminal or civil penalties. If you have received this communication in error, please notify the sender by replying to the message and delete the material from any computer.

Thank you,

Prudent Rx, Inc. 
 




Project hosted by iFAX Solutions