Re: perl/tex question

2002-03-26 Thread Blake Thornton
> >Get the whole bookshelf on a CD thing O'Reilly sells. It has 6-7 books on > >it, and it's searchable. It costs $70-80 - about the cost of 2 books. Thanks to all who responded. I'll look into this and probably buy it. Thanks for reminding me about the perldoc command as well. b ___

Re: perl/tex question

2002-03-26 Thread Bill Crawford
On Tue, 26 Mar 2002, David Talkington wrote: > But v.2 of that bookshelf CD does not include `Learning Perl' (it was > replaced with `Perl for System Administration' ... prob'ly oughta buy > that one. Shame. It's quite a fun book. If you've already learnt the basics (i.e. you know what scala

Re: perl/tex question

2002-03-26 Thread David Talkington
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 [EMAIL PROTECTED] wrote: >On Tue, 26 Mar 2002, Blake Thornton wrote: > >> I've got the first edition of "programming perl." the third edition is >> out and perhaps I should buy it. Would you (or someone) suggest >> "programming perl" or "learning p

Re: perl/tex question

2002-03-26 Thread Bill Crawford
On Tue, 26 Mar 2002, Blake Thornton wrote: > Yep, I'm a beginner, but you can't learn without trying things out. No > offense at all was taken by you observing this, I appreciate the input and > especially the caution. > > I've got the first edition of "programming perl." the third edition is

Re: perl/tex question

2002-03-26 Thread cgalpin
On Tue, 26 Mar 2002, Blake Thornton wrote: > I've got the first edition of "programming perl." the third edition is > out and perhaps I should buy it. Would you (or someone) suggest > "programming perl" or "learning perl"? Another one is "Cgi programming > with perl" Get the whole bookshelf o

Re: perl/tex question

2002-03-26 Thread Blake Thornton
> That's Perl's way of scoping a variable. > > Sounds like you should do some more studying before you put a script > online, especially if this is a publicly accessible server. At your > skill level (and please understand that I'm cautioning, not > criticizing), your use of system() calls in

Re: perl/tex question

2002-03-26 Thread David Talkington
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Blake Thornton wrote: >Can you (or anyone else) explain to me the command > my $rc That's Perl's way of scoping a variable. Sounds like you should do some more studying before you put a script online, especially if this is a publicly acces

Re: perl/tex question

2002-03-26 Thread Charles Galpin
On Tue, 26 Mar 2002, Blake Thornton wrote: > > > > I'm guessing it's output to stderr you are still seeing. Try > > > > chdir("/path/to/latex/files") or die "chdir failed: $!\n"; > > my $rc = system("latex filename.tex > /dev/null 2>&1"); > > > > Beautiful!! It worked great. > > Can you (or anyon

Re: perl/tex question

2002-03-26 Thread Blake Thornton
> > > >Q: How do I make perl run programs in a given directory? > > > > So, what now happens is that all the output from running tex is displayed > > on the webpage. How do I redirect the output from this to /dev/null ? > > (So, I still want it to create a .dvi file, but I want all the tex > > de

Re: perl/tex question

2002-03-26 Thread cgalpin
On Mon, 25 Mar 2002, Blake Thornton wrote: > > >Q: How do I make perl run programs in a given directory? > > So, what now happens is that all the output from running tex is displayed > on the webpage. How do I redirect the output from this to /dev/null ? > (So, I still want it to create a .dvi f

Re: perl/tex question

2002-03-25 Thread Blake Thornton
> >Q: How do I make perl run programs in a given directory? > > system("cd /path/to/latex/files; latex filename.tex"); > > Quick and dirty. Well, mostly good - at least tex is running (before it wouldn't even run). Now, I need to run this from a cgi script on a webpage (basically, I'm hoping

Re: perl/tex question

2002-03-25 Thread David Talkington
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Blake Thornton wrote: >Q: How do I make perl run programs in a given directory? system("cd /path/to/latex/files; latex filename.tex"); Quick and dirty. Cheers ... -d - -- David Talkington PGP key: http://www.prairienet.org/~dtalk/0xCA4C11AD.pgp

perl/tex question

2002-03-25 Thread Blake Thornton
I have a perl question (related to tex) that I can't figure out. How can I run latex from a perl script? I know that the following is a possibility: system "latex filename.tex" But, the problem is that I need to run latex in the given directory because tex needs access to all the auxil