UUID confusion revisited
SYNass IT Ubuntu / Linux
i-ubux at synass.net
Tue Mar 25 07:56:38 UTC 2008
Thank you for your prompt reply and your hints !
First & positive: I got date / time added as intended !! ;-)
Second and not so good:
Looks like I am working with two left hands with placing the script as
recommended/wanted ! ;-|
a1) I assume $HOME/bin means /home/bin !?
a2) I do not have such a location ! ;-(
b1) Created my script (UUIDcomp) in /usr/local/bin
b2) After chmod +w /usr/local/bin/UUIDcomp I am getting:
sna at WS222:~$ sh UUIDcomp
sh: Can't open UUIDcomp
sna at WS222:~$ UUIDcomp
bash: /usr/local/bin/UUIDcomp: Permission denied
sna at WS222:~$
What and where could have gone wrong ...
... or where did I make my mistake/s ??
Any hints / suggestions ?
TIA and cheers, svobi
On Tue, 2008-03-25 at 07:32 +0100, Nils Kassube wrote:
> SYNass IT Ubuntu / Linux wrote:
> > But normally to where are you place these own scripts ?
> > Just into "/bin" ?? or into an extra folder i.e. /bin/scripts ???
> If you want to use it as a private script which is only accessible to you
> and not to other users, put it in "$HOME/bin". Furthermore, if you make
> it executable with "chmod +w $HOME/bin/scriptname" you don't need the sh
> command. If you want to make it available for all users of the machine,
> put it in "/usr/local/bin".
> > My version of the script got some little modifications already:
> > I named it "UUIDcomp" and the two tmp outputs were renamed to
> > UUID_drives.tmp & UUID_mounts.tmp !!
> > How can i displayed i.e. ymmdd_hhmmss instead of "tmp" ???
> That would be something like "UUID_drives.$(date '+%y%m%d_%H%M%S')".
> See "man date" for other formats.
More information about the ubuntu-users