  | |  | Bash script help | Bash script help 2004-02-06 - By Richard Ottinger
Back Do you own the script file?
# ls -l scriptname
-rwxr-xr-x 1 richard richard 256 Feb 4 12:16
filename
See the richard richard columns. The first is the owner, second is
the group. To change both to your name use:
# chown yourname:yourname scriptname
Then do ls -l to confirm owner/group
If the script was created under some other user then you may not be able
to change permission/owner unless your root.
To make the file executable:
chmod +x scriptname
If the directory path that contains the script is not in PATH variable
(echo $PATH) then use ./yourscript to execute it.
Richard
-- --Original Message-- --
From: redhat-list-admin@(protected) [mailto:redhat-list-admin@(protected)]
On Behalf Of Ben Yau
Sent: Friday, February 06, 2004 4:41 PM
To: redhat-list@(protected)
Subject: RE: Bash script help
>
>
> Hi,
>
> I want to write a bash script to copy my bookmarks, addressbook
> and mbox files from Mozilla on Linux to Mozilla on Windows. I started
> with this but it keeps giving me a Permission denied error.
>
Have you run the commands manually (outside of the script) to see if it
works? You can also use the "-x " after the shell declaration and the
script will give you verbose output and tell you everything it is doing
as it 's going.. That might help you nail down where the problem is.
#!/bin/sh -x
--
redhat-list mailing list
unsubscribe mailto:redhat-list-request@(protected)?subject=unsubscribe
https://www.redhat.com/mailman/listinfo/redhat-list
--
redhat-list mailing list
unsubscribe mailto:redhat-list-request@(protected)?subject=unsubscribe
https://www.redhat.com/mailman/listinfo/redhat-list
|
|
 |