Wrox Programmer Forums
Go Back   Wrox Programmer Forums > Open Source > Linux
|
Linux General discussion of programming the various flavors of Linux operating systems.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the Linux section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old April 30th, 2007, 09:19 AM
Friend of Wrox
 
Join Date: Jan 2005
Posts: 1,525
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via ICQ to crmpicco Send a message via AIM to crmpicco Send a message via MSN to crmpicco Send a message via Yahoo to crmpicco
Default where is shell script saved on unix box

when a shell script is written and saved, what directory is it saved in? if i run the command "/sync.sh" (without the quotations) from any directory, it runs. whereabouts is the script 'sync.sh' saved?

Picco

www.crmpicco.co.uk
www.ie7.com
__________________
_______________________
Ayrshire Minis - a Mini E-Community
http://www.ayrshireminis.com
http://www.crmpicco.co.uk
 
Old May 11th, 2007, 05:30 AM
Friend of Wrox
 
Join Date: Dec 2003
Posts: 488
Thanks: 0
Thanked 3 Times in 3 Posts
Default

depends what file path you give it. /sync.sh goes to a directory called / (the root directory). A sensible place to store scripts is /usr/local/bin/. i.e. /usr/local/bin/sync.sh

--
Charlie Harvey's website - linux, perl, java, anarchism and punk rock: http://charlieharvey.org.uk
 
Old August 3rd, 2007, 12:56 PM
Registered User
 
Join Date: Aug 2007
Posts: 4
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via Yahoo to ajopaul
Default

any script stored in any of the paths found in $PATH variable can be run from anywhere!





Similar Threads
Thread Thread Starter Forum Replies Last Post
Using Shell to invoke cmd script with argument srcLakeJake Access VBA 3 October 26th, 2007 09:35 AM
Help-Implementing a unix shell to run commands ssimkhan Java Basics 1 June 15th, 2007 06:43 AM
Help-Implementing a unix shell to run commands ssimkhan Pro Java 0 June 7th, 2007 04:58 AM
Shell Script techSupport C++ Programming 0 March 10th, 2005 05:58 AM
c-shell script timpeters C# 0 October 21st, 2003 12:08 AM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.