Am Donnerstag, 17. Februar 2005 11:09 schrieb Anton Ertl:
thx for your help ;)
i cant write programs in c so i left this out
the first tip is the way i will go... seems to be easy enough ;)
thx ;)
btw is there a way to upload my code so that others can benefit from it?
it's only a small programm but someone may find it useful because it is
_easier_ to use as ps2ps.
the program generates a latex file where pages (eps files) get arranged for
printing booklets, brochures, visitcards? (visitenkarten) and so on.... ready
for duplex/simplex printing...
ralf
>
> One way to do this is to have myprog in source, and then start the
> script like this:
>
> #! /usr/local/bin/gforth /usr/bin/myprog
> ...
>
> AFAIK Unix does not allow recursive use of the #! mechanism, so you
> either have to do it in one level, as above, or myprog needs to be in
> a binary format directly interpreted by the OS. Currently there is no
> easy way to do this for Gforth programs (there is some way to make a C
> file from an image, but it is not documented).
>
> One other thing you could do is to write a small C program like this:
>
> int main(int argc, char **argv)
> {
> return execlp("gforth",argv[0],"-i","/usr/bin/myprog.fi",argv[1],NULL);
> }
>
> (completely untested, and error checking should be added), compile that as
> /usr/bin/myprog, and then use your original script.
>
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]