The UNIX and Linux Forums  

Go Back   The UNIX and Linux Forums > Top Forums > UNIX for Dummies Questions & Answers
Google UNIX.COM


UNIX for Dummies Questions & Answers If you're not sure where to post a UNIX or Linux question, post it here. All UNIX and Linux newbies welcome !!

More UNIX and Linux Forum Topics You Might Find Helpful
Thread Thread Starter Forum Replies Last Post
Enterprise Unix Roundup: The Ghost of Unix Future - Server Watch iBot UNIX and Linux RSS News 0 12-19-2007 08:20 AM
Running UNIX commands remotely in Windows box from Unix box – avoid entering password D.kalpana UNIX for Dummies Questions & Answers 1 04-20-2007 02:24 AM
FTP script for sending a file from one unix directory to another unix server director raja_1234 Shell Programming and Scripting 1 11-30-2006 03:57 AM
Unix Sco Open Server, Windows Computers Problem Access Unix Shared Files Help!!!!! haggo Filesystems, Disks and Memory 2 08-23-2006 08:39 AM
Unix History Question: Why are filenames/dirnames case sentsitive in Unix? deckard UNIX for Dummies Questions & Answers 3 03-26-2005 09:59 AM

Reply
 
Submit Tools LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 12-10-2004
Registered User
 

Join Date: Sep 2004
Location: Florida
Posts: 24
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Reddit! Stumble this Post!Spurl this Post!
Unhappy Faxing from Unix

I am trying to send a fax from the unix box through our mail server. I am able to send pages, files, etc. but for the fax the mail server requires a space that I can't get unix to accept. The syntax is:

mail "[fax: bh@9999494178]"

Unix will take the command without the space, but the mail server has to have the space. Does anyone know how I can get unix to accept the space?
__________________
Barb
Reply With Quote
Forum Sponsor
  #2 (permalink)  
Old 12-10-2004
Registered User
 

Join Date: Sep 2004
Location: Florida
Posts: 24
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Reddit! Stumble this Post!Spurl this Post!
Does anyone know how to get unix to ignore a space. I know how to ignore a special character, how to ignore a line, but this I'm lost on. I've searched the web, talked to everyone I know personally who has anything to do with Unix and so far nothing.
__________________
Barb
Reply With Quote
  #3 (permalink)  
Old 12-10-2004
...@...
 

Join Date: Feb 2004
Location: NM
Posts: 3,279
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Reddit! Stumble this Post!Spurl this Post!
Most shells take anything inside single quotes without changing or substituting the value.

i.e.,
Code:
mail '[fax: bh@9999494178]'
If this is not what mail sees, then mail is changing the value.
Not unix shell.

If thinks that [fax: is argv[1] and bh@9999494178] argv[2] then
you need to read up on what version of mail you have installed - or try mailx or sendmail.
Reply With Quote
  #4 (permalink)  
Old 12-10-2004
Neo's Avatar
Neo Neo is offline
Administrator
 

Join Date: Sep 2000
Location: Asia Pacific
Posts: 4,014
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Reddit! Stumble this Post!Spurl this Post!
# mail '[fax: bh@9999494178]'
[fax:bh@9999494178] contains invalid character '['


#mail "[fax: bh@9999494178]"
[fax:bh@9999494178] contains invalid character '['


Seems you may have problems other than with a SPACE with this idea........ since I'm not sure how you are aliasing the fax service (the TO ADDR), I can't help further, sorry.

From man.....



mail [-BFintv~] [-s subject] [-a attachment ] [-c cc-addr] [-b bcc-addr] [-r from-addr] [-h hops] to-addr ...

Reply With Quote
  #5 (permalink)  
Old 12-10-2004
Registered User
 

Join Date: Sep 2004
Location: Florida
Posts: 24
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Reddit! Stumble this Post!Spurl this Post!
My system doesn't have a problem with the brackets. Just with the space. Thanks for your help - guess I'll keep working on this one in my spare time and do a work around for now. I've looked through very manual I can find and bothered everyone I know who knows anything about Unix. If I figure it out I'll post the solution. Thanks again.
__________________
Barb
Reply With Quote
Google UNIX.COM
Reply

Thread Tools
Display Modes




All times are GMT -7. The time now is 04:29 AM.


Powered by: vBulletin, Copyright ©2000 - 2006, Jelsoft Enterprises Limited.
The UNIX and Linux Forums Content Copyright ©1993-2008 The CEP Blog All Rights Reserved -Ad Management by RedTyger Visit The Global Fact Book

Content Relevant URLs by vBSEO 3.2.0

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101