Linux SHELL cmd

Linux specific questions.
Post Reply
albert
Posts: 6000
Joined: Sep 28, 2006 2:41
Location: California, USA

Linux SHELL cmd

Post by albert »

Hello;

I'm trying to convert me and Dodicat's Five Deck Maverick to FB Linux.

To get it to speak you need to download flite ( festival lite )

I'm having trouble with the shell command.

text = "you lost"

shell( "echo ""text"" | flite" ) ----doesn't work it says "text"
shell( "echo text | flite" ) ----doesn't work it says "text"

How do you pass a string to the shell ??
D.J.Peters
Posts: 8586
Joined: May 28, 2005 3:28
Contact:

Re: Linux SHELL cmd

Post by D.J.Peters »

text is a string var so you have to concatenate it

shell( "echo " & text & " | flite")

var a = "hello"
var b = "world"
print a & " " & b

Joshy
albert
Posts: 6000
Joined: Sep 28, 2006 2:41
Location: California, USA

Re: Linux SHELL cmd

Post by albert »

@D.J.Peters

Thank you!!
Got it working..

text and text_w_l

shell( "echo " & text & text_w_l & " | flite")
Post Reply