[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[ale] Bash script help
- Subject: [ale] Bash script help
- From: jkinney at localnetsolutions.com (James P. Kinney III)
- Date: Tue, 22 Aug 2006 07:36:01 -0400
- In-reply-to: <[email protected]>
- References: <[email protected]>
On Tue, 2006-08-22 at 04:58 -0400, Jim Seymour wrote:
> Okay, I am trying to build my own backup script and running into an
> error trying to pipe mkisofs into cdrecord. I am getting a command not
> found on the cdrecord part. This is a bash script and the problem line
> is below.
>
> MKCD="mkisofs -J -R -V "$(date '+%a %F')" $TDIR$IBALL" | "cdrecord
> blank=fast driveropts=singlesession,burnfree -"
>
> The MKCD is being called as a variable in the script. I have not benn
> able to find out why the pipe fails. Ideas?
I have found that always using a defined PATH statement or explicit
command paths is essential. Basically, cdrecord is not in the PATH for
the environment running the script.
>
> TIA
> _______________________________________________
> Ale mailing list
> Ale at ale.org
> http://www.ale.org/mailman/listinfo/ale
--
James P. Kinney III \Changing the mobile computing world/
CEO & Director of Engineering \ one Linux user /
Local Net Solutions,LLC \ at a time. /
770-493-8244 \.___________________________./
http://www.localnetsolutions.com
GPG ID: 829C6CA7 James P. Kinney III (M.S. Physics)
<jkinney at localnetsolutions.com>
Fingerprint = 3C9E 6366 54FC A3FE BA4D 0659 6190 ADC3 829C 6CA7
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: This is a digitally signed message part