public inbox for speakup@linux-speakup.org
 help / color / mirror / Atom feed
* Question About Path And Commands
@  Rejean Proulx
   ` Janina Sajka
                   ` (2 more replies)
  0 siblings, 3 replies; 4+ messages in thread
From: Rejean Proulx @  UTC (permalink / raw)
  To: speakup

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

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: Question About Path And Commands
   Question About Path And Commands Rejean Proulx
@  ` Janina Sajka
   ` Joseph C. Lininger
   ` Sean McMahon
  2 siblings, 0 replies; 4+ messages in thread
From: Janina Sajka @  UTC (permalink / raw)
  To: Speakup is a screen review system for Linux.

The command is 'which' so, for example, to find where cp is you would do:

which cp
Rejean Proulx writes:
> From: "Rejean Proulx" <rejean@interfree.ca>
> 
> 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

-- 
	
Janina Sajka
Email: janina@rednote.net		
Phone: +1 (202) 408-8175

Director, Technology Research and Development
American Foundation for the Blind (AFB)
http://www.afb.org

Chair, Accessibility Work Group
Free Standards Group
http://a11y.org


^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: Question About Path And Commands
   Question About Path And Commands Rejean Proulx
   ` Janina Sajka
@  ` Joseph C. Lininger
   ` Sean McMahon
  2 siblings, 0 replies; 4+ messages in thread
From: Joseph C. Lininger @  UTC (permalink / raw)
  To: Speakup is a screen review system for Linux.


-----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-----



^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: Question About Path And Commands
   Question About Path And Commands Rejean Proulx
   ` Janina Sajka
   ` Joseph C. Lininger
@  ` Sean McMahon
  2 siblings, 0 replies; 4+ messages in thread
From: Sean McMahon @  UTC (permalink / raw)
  To: Speakup is a screen review system for Linux.

at yoor prompt bype which followed by the command.  For example on our
server perl is in my path so typing which perl tells me /usr/bin/perl
Sean
----- 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



^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~ UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
 Question About Path And Commands Rejean Proulx
 ` Janina Sajka
 ` Joseph C. Lininger
 ` Sean McMahon

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).