Poke a Shell Variable with xTalk?

Mark Waddingham 36degrees at runrev.com
Tue Sep 13 12:52:36 EDT 2005


You can both read and write to shell variables in Revolution. So the
following:
  put foo into $FOO
  put shell("echo $FOO")
Results in what you would expect in the message-box :o)

In other-words, what you are trying to do should work fine...

Hope this helps!

Mark.

On Mon, 2005-09-12 at 07:52 -1000, Sivakatirswami wrote:
> 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
> 
> _______________________________________________
> 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
-- 
------------------------------------------------------------------
 Mark Waddingham ~ 36degrees at runrev.com ~ http://www.runrev.com
       Runtime Revolution ~ User-Centric Development Tools




More information about the use-livecode mailing list