| PLEX86 | ||
|
how can set java path from script in LinuxOn 11 Oct 2006 06:29:32 -0700, ram Ok, based on what you said, then the user has followed your instructions to execute your script. Looking at your script, I can say your script would not work if the cd drive is mounted anywhere else besidesmnt-cdrom. Example:mnt-cdrom2
You decide. You can put it in the top level directory of the cd. That way when you look on the cd you see the script. If it is called install.sh then the user has an idea that maybe the install script. Yes, You could try to automagically figure out where you are running from and using that information to do whatever you need done. SAMBA share with having user,pbuttword popup&have no it at the same time The problem when I set etc-samba-smb.conf to be something like this global ## with no security = share or user directory1 security = share directory2 security = user when I browse to... You have variables like $PWD and $0 which may help you to get where your script was called from and use it to do whatever else you want done. Just for fun do the following from a terminal. mkdir -p ~-tmp-cdrom cd ~-tmp-cdrom Create your script myscript, with the following. #!-bin-bash dir=$(dirname $0) echo Current directory=$PWD echo script loc=$dir exit 0 Next set the execute perms with chmod +x myscript Execute myscript with these two test cases .-myscript ~-tmp-cdrom-myscript Next test cd ~-tmp-cdrom-myscript See, now your script could have something like targetdir=-usr-local-bin-ems mkdir -p $targetdir cd $targetdir tar -zvxf $dir-rus.tgz The above buttumes the tgz file is in the same directory as myscript. You may want to spend a little time looking through
|
||||
SAMBA share with having user,pbuttword popup&have no it at the same time Linux groups from Newsgroups The #1 Usenet Provider on the Internet
|
||||