Re: how to write this simple script command?
- From: Keith Keller <kkeller-usenet@xxxxxxxxxxxxxxxxxxxxxxxxxx>
- Date: Thu, 31 Jan 2008 09:55:58 -0800
On 2008-01-31, www <www@xxxxxxxxxx> wrote:
Thank you. I have just figured out myself. Following is better, because
foo.txt will get foo.txt.pdf and bar.txt will get bar.txt.pdf
#!/bin/bash
a2ps --output=$1.ps $1
ps2pdf $1.ps
rm -f $1.ps
Why generate a temp file at all?
#!/bin/bash
a2ps --output=- $1 | ps2pdf - > $1.pdf
Sadly, you still need $1, since ps2pdf can't figure out the filename if
it's sent stdin.
--keith
--
kkeller-usenet@xxxxxxxxxxxxxxxxxxxxxxxxxx
(try just my userid to email me)
AOLSFAQ=http://www.therockgarden.ca/aolsfaq.txt
see X- headers for PGP signature information
.
- Follow-Ups:
- References:
- how to write this simple script command?
- From: www
- Re: how to write this simple script command?
- From: Lew Pitcher
- Re: how to write this simple script command?
- From: www
- how to write this simple script command?
- Prev by Date: how to enable /disable USB ports
- Next by Date: Discover rogue wireless APs?
- Previous by thread: Re: how to write this simple script command?
- Next by thread: Re: how to write this simple script command?
- Index(es):
Relevant Pages
|