From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from ns.pcdesk.net ([65.100.173.137] helo=gwen) by speech.braille.uwo.ca with esmtp (Exim 3.36 #1 (Debian)) id 1AkrZw-0005kO-00 for ; Sun, 25 Jan 2004 16:14:00 -0500 Received: from merlin ([192.168.0.100]) (AUTH: LOGIN jbahm, TLS: TLSv1/SSLv3,128bits,RC4-MD5) by gwen with esmtp; Sun, 25 Jan 2004 14:13:23 -0700 Message-ID: <002001c3e388$13342df0$6400a8c0@merlin> From: "Joseph C. Lininger" To: "Speakup is a screen review system for Linux." References: <07fd01c3e345$0e239f50$6a01a8c0@canadarm> Date: Sun, 25 Jan 2004 14:13:27 -0700 MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit X-Priority: 3 X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook Express 6.00.2800.1158 X-MIMEOLE: Produced By Microsoft MimeOLE V6.00.2800.1165 Subject: Re: Question About Path And Commands X-BeenThere: speakup@braille.uwo.ca X-Mailman-Version: 2.1.3 Precedence: list Reply-To: "Speakup is a screen review system for Linux." List-Id: Speakup is a screen review system for Linux. List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 25 Jan 2004 21:14:01 -0000 -----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" To: 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-----