Poke a Shell Variable with xTalk?

Sivakatirswami katir at hindu.org
Mon Sep 12 13:52:42 EDT 2005


Can we pass data from a local variable in Revolution to a variable in  
shell.? How?

eg.

in shell

cat <<some_variable
test
test
test
 >>some_variable

gives us "$some_variable"

where

echo $some_variable  #gives us

test
test
test



now what we want to do is

put "Greetings to all innovative Revolutionaries" into tGreeting

[pseudo code here:]

put tGreeting into $Greeting

  set the shellcommand to "/bin/sh"
   put "cat $Greeting" & " | sendmail -f hpi.list at hindu.org " & (fld  
"to" of cd "staticText")  into tCmd

   put shell(tCmd) into tResult

# where the contents of $Greeting is piped to sendmail...

I know we can read $ variable from the system, but can we create and  
poke them?

TIA

Sivakatirswami




More information about the use-livecode mailing list