Mailing List
Home
Linux - General Red Hat Linux discussion list
Enterprise Linux 3 - Discussion of Red Hat Enterprise Linux 3 (Taroon)
Red Hat Linux 9 - Discussion of Red Hat Linux 9 (Shrike)
Installation - Getting started with Red Hat Linux
Red Hat Linux 7.3 - Discussion of Red Hat Linux 7.3 (Valhalla)
Red Hat Linux 8.0 - Discussion of Red Hat Linux 8.0 (Psyche)
Red Hat Linux 7.2 - Discussion of Red Hat Linux 7.2 (Enigma)
Red Hat Linux 7.1 - Discussion of Red Hat Linux 7.1 (Seawolf)
Apache Web Server
Oracle database, Microsoft SQL server ...
Subjects
application/x mplayer2 plugin
RPM error: db4 error(16) from dbenv >remove: Device or resource
   busy
Command stream end of file while reading
X Windows problem (xauth)
Upgrading openoffice 1 1 rpm
FTP: connection refused
FTP: connection refused
mount: /dev/cdrom: is not a valid block device
Dell Precision 650, RedHat 9, no sound
how to trace the cause resulting in the crash of bind server
Virus on the list
UNINSTALL RPM MYSQL
usb pen drives: mounting as a user
broadcom network interface
make mrproper
sendmail configuration on redhat
Couldn 't open PID file /var/run/named/named pid Permission denied
Promise 378 controller
kernel 2 6 and /dev/sound/mixer not found
Problem using up2date
mrtg step by step howto/configuration for a newbie?
Compiling and Installing Kernel 2 6
Can 't locate module ppp0, can 't locate module ppp compress 21
HOW I CAN MAKE BOOTABLE FLOPPY DISKET
Lotus Notes under Wine
/etc/security/limits conf question
Intel E/1000 driver
Command stream end of file while reading
rpm database corrupt
qla2300 modules
 
Search:  
Power your search with and, or, +, -, or "some phrase" operators.
Bash script help

Bash script help

2004-02-06       - By Richard Ottinger

 Back
Reply:     1     2     3     4     5     6     7     8  

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