From: "Joseph C. Lininger" <jbahm@pcdesk.net>
To: "Speakup is a screen review system for Linux." <speakup@braille.uwo.ca>
Subject: Re: Question About Path And Commands
Date: Sun, 25 Jan 2004 14:13:27 -0700 [thread overview]
Message-ID: <002001c3e388$13342df0$6400a8c0@merlin> (raw)
In-Reply-To: <07fd01c3e345$0e239f50$6a01a8c0@canadarm>
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
You have two choices. The first and easiest is to set the path in
your
script so that you don't have to type in fully qualified commands the
hole
time. You can do that by placing this line near the top of the script
(note,
this is a commonly used path, and you may need to add and/or remove
directories from it):
path=/bin:/usr/bin:/usr/local/bin:/sbin:/usr/sbin:/usr/local/sbin
The other way is to use the whereis command to find every program you
need,
and then fully qualify everything. For example:
whereis cp
Would tell you where cp is. Here is the output from that command on
my
system:
cp: /bin/cp /usr/bin/cp /usr/man/man1/cp.1.gz
/usr/share/man/man1/cp.1.gz
I don't recommend this aproach for two reasons. First, it can be very
time consuming if you are using a lot of programs. Second, if you
want to give someone else your script for some reason, it may or may
not run depending on if programs are in a different location.
- ---
Joseph C. Lininger
jbahm@pcdesk.net
- ----- Original Message -----
From: "Rejean Proulx" <rejean@interfree.ca>
To: <speakup@braille.uwo.ca>
Sent: Sunday, January 25, 2004 6:13 AM
Subject: Question About Path And Commands
I want to set up a weekly cron with the diff and the mail command.
Cron
requires that everything is fully qualified.
How do I tell where the diff and mail commands are found? For
example, I
know that cp is in ;/bin/ My script keeps failing and I am trying to
fix
it.
Rejean Proulx
Visit my family at http://interfree.ca
MSN is: rejp@rogers.com
Ham License VA3REJ
_______________________________________________
Speakup mailing list
Speakup@braille.uwo.ca
http://speech.braille.uwo.ca/mailman/listinfo/speakup
-----BEGIN PGP SIGNATURE-----
Version: PGP 8.0.3
iQA/AwUBQBQxdCenap9Jqj2wEQIGswCgit6xkeNnr1tBWsC7FL+5QX7/xegAoKBc
TFoJbykzRkVc4m2uynf6AT9y
=KDz5
-----END PGP SIGNATURE-----
next prev parent reply other threads:[~ UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
Rejean Proulx
` Janina Sajka
` Joseph C. Lininger [this message]
` Sean McMahon
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to='002001c3e388$13342df0$6400a8c0@merlin' \
--to=jbahm@pcdesk.net \
--cc=speakup@braille.uwo.ca \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).