Page 1 of 1

command line option

Posted: Mon Oct 05, 2009 3:49 am
by gaurav.shetti
How can i run command line commands from vortex.
for eg take tail -f directorypath gives errors of vortex when run from texis.
How can i run it directly from vortex web server.

command line option

Posted: Mon Oct 05, 2009 10:25 am
by mark
I don't quite follow what you want to do and what the problem is and what errors you're getting. Could you rephrase and be more specific?

Also see the command line docs at http://www.thunderstone.com/site/vortex ... tions.html

command line option

Posted: Tue Oct 06, 2009 7:12 am
by gaurav.shetti
In texis ... we can run something like this
-bash-3.00$ tail -f /usr/local/morph3/texis/vortex.log

The above command lists all the errors recently logged by the voretx script. This command is run at texis level.

I want to call this command inside the vortex script.
<a name=main>

Call it here

</a>

What is the syntax for calling the tail command from vortex file.

command line option

Posted: Tue Oct 06, 2009 10:13 am
by mark
If you're wanting to process the lines from the file as they come in you'll need to use <readln> and/or pipe tail -f into the script instead execing within as the exec will wait for the command to finish and return all the output at once.

tail -f .../vortex.log|texis myscript

command line option

Posted: Tue Oct 06, 2009 10:43 am
by gaurav.shetti
Mark, can you provide an example.
Thanks

command line option

Posted: Tue Oct 06, 2009 12:05 pm
by mark
An example of what? I provided an example of piping tail into vortex.

What's the overall task you're trying to accomplish? That might better help us understand the problem and how to solve it.