Executing PAL Scripts
Forum » Ongoing Development / Problem reports » Executing PAL Scripts
started by: Anonymous (86.131.61.99)
on: 1174610715|%e %b %Y, %H:%M %Z|agohover
number of posts: 4
rss icon RSS: new posts
summary:
Command line executable for PAL scripts
Executing PAL Scripts
Anonymous (86.131.61.99) 1174610715|%e %b %Y, %H:%M %Z|agohover

Please could you tell me what the executable name is for calling PAL scripts. I've tried PAL -h and expected to get a list of commands as described in the documentation e.g.

Syntax: program [options…]
Options:
-s server Server:port to connect to (localhost)
-t level Set trace level (default = 0)
0=none, 1=low, 2=medium, 3=high
-r count Repeat script count times, 0=forever (1)
-c Clock the script (0)
-a Animate: show script commands
-e Execute in single-step mode (0)
-q Quiet mode: no messages
-v Show version information
-h Show summary of command-line options
The order of arguments is not important. Switches and filenames
are case sensitive. See documentation for detailed information.

However I get the following:-

cbourne@cbourne-desktop:~/ibase$ pal -h
E: '-h' is not a PAL script

unfold Executing PAL Scripts by Anonymous (86.131.61.99), 1174610715|%e %b %Y, %H:%M %Z|agohover
Re: Executing PAL Scripts
martin_sustrikmartin_sustrik 1174627541|%e %b %Y, %H:%M %Z|agohover

Keep in mind that PAL is a compiled language. I.e. 'pal' command compiles your pal script, making an executable. The executable then accepts the command line options you've listed.

$ pal demo.pal
2007/03/23 06:24:06: gsl/4 M: Generating demo.c…
Compiling demo…
Linking demo…
$ ./demo -s 127:0.0.1:5672

unfold Re: Executing PAL Scripts by martin_sustrikmartin_sustrik, 1174627541|%e %b %Y, %H:%M %Z|agohover
Re: Executing PAL Scripts
Anonymous (217.41.98.13) 1174668675|%e %b %Y, %H:%M %Z|agohover

Thanks Martin!

Still can't get it to do much though - Thought I would try and build a simple script to send/receive some data to the AMQ broker. It does'nt seem to be that straight forward though.

Any working demo scripts would be useful.

Do I run "gsl demo.pal" first?

Carl

unfold Re: Executing PAL Scripts by Anonymous (217.41.98.13), 1174668675|%e %b %Y, %H:%M %Z|agohover
Re: Executing PAL Scripts
Anonymous (85.216.227.35) 1174671208|%e %b %Y, %H:%M %Z|agohover

Hm, can you attach the the ouput from the problem you have? It should be as easy as i've suggested: pal demo.pal and run the executable.

BTW, you can join gro.qmanepo.stsil|ved-qmanepo#gro.qmanepo.stsil|ved-qmanepo, that way the feedback from us will be a bit more rapid.

unfold Re: Executing PAL Scripts by Anonymous (85.216.227.35), 1174671208|%e %b %Y, %H:%M %Z|agohover
new post