Poke a Shell Variable with xTalk?

Sivakatirswami katir at hindu.org
Thu Sep 15 01:07:52 EDT 2005


Well I thought:

replace numToChar (13) with   numToChar (10) accomplishes this.

Indeed it does if I write a file to the hard drive and have some Nix  
program open and read it... end-of-lines are recognized (they are not  
if you don't change char (13) to char (10)

But, the anomaly here is that

replace numToChar (13) with   numToChar (10) in tMsg
put tMsg into $DailyEmail
set the shellcommand to "bin/sh"
put "echo $DailyEmail" | sendmail  [etc.] into tCmd
put shell(tCmd)

the result is empty (i.e. Send mail is accepting the input)

But the email we get is "bogus"... the entire text of the msg is  
poked into the subject line...

i.e. no end lines are being sent to StnOut from Echo... and whether  
or not I leave them as ASCII 13 or Change them to ASCII 10.. there  
result is the same: no line delimiter is recognized at all.

So "echo" is not echoing the ends of lines...no matter what they are...

I don't think this will change by declaring them as constant NAMES  
"LINEFEED"   but I will try.

replace numToChar (13) with  CLRF in tMsg # also doesn't make any  
difference. .. everything still on one line.

Sivakatirswami



On Sep 14, 2005, at 6:45 PM, Stephen Barncard wrote:

> Swami,
> Maybe you thought of this already, but did you try LINEFEED instead  
> of RETURN?
>
> sqb
>
>
>> OK more digging... I am very close...(after 10 hours or more on  
>> this...) more simple than I thought
>>
>> "echo" is your friend!   Only now, a new problem, end lines on the  
>> Mac. I am unable to enforce them by any means.
>>
>> -----------------
>> put "Subject: Rev Rocks" & cr \
>> & "From: Innovative_Geologists at xTalkQuarry.com" & cr \
>> & "To: AnyoneWhoLikesPerl at LostInCyberSpace.com" & cr  \
>> & "Subject: Try It... You will be Happy You Did!" & cr & cr
>> &"Get more done with few lines of code than you will ever imagine  
>> possible." into tMsg
>>
>>
> _______________________________________________
> use-revolution mailing list
> use-revolution at lists.runrev.com
> Please visit this url to subscribe, unsubscribe and manage your  
> subscription preferences:
> http://lists.runrev.com/mailman/listinfo/use-revolution
>




More information about the use-livecode mailing list