A bash script

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Greetings
I am about to start a script for installing a couple of updates and I got this 
far :

#!/bin/sh

echo "Starting install process ;-)"
pwd


Now the very first thing i need, is a thing I can't do
ha ha!

The script will run from a folder probably called "updates"
What I have never worked out was how to make the current working dir a 
variable for this. As this folder could be copied anywhere in the file 
system!
so the script will have to work regardless of what the absolute path is. 
Endusers can be stupid you know and make 10 copies of the folder before 
getting the updates folder into the correct one.

I figured I would need to put in  a pwd command.

but how do you make the script recognise the pwd output as a variable?

Is there a simple example I cam work from?

TIA

-- 
Chadley Wilson
Redhat Certified Technician 
Cert Number: 603004708291270
Pinnacle Micro
Manufacturers of Proline Computers
====================================
Exercise freedom, Use LINUX
=====================================


[Index of Archives]     [Current Fedora Users]     [Fedora Desktop]     [Fedora SELinux]     [Yosemite News]     [Yosemite Photos]     [KDE Users]     [Fedora Tools]     [Fedora Docs]

  Powered by Linux