Results 1 to 3 of 3
below is a file I've written to load a CD of DVD drivers for Suse 10.1 via konsole as root.. Permission is denied to enter file at all. pls help ...
- 02-12-2007 #1Linux Newbie
- Join Date
- Apr 2005
- Location
- West Oz
- Posts
- 140
hdelp with python scratch(?) file
below is a file I've written to load a CD of DVD drivers for Suse 10.1 via konsole as root.. Permission is denied to enter file at all. pls help me fix it, not a programmer, just playing around trying to have a working default installed system every time with just the DVD and a CD. Kwrite was the editor, Python filetype. The echo commands are checks to see what progress is made. All new files are from http://cambuca.ldhs.cutec.puc.rio-br/xine CD label is <fixes1> with the files in the <Linux> subdirectory. I have not removed the 3 default-installed xine files nor kaffeine via this program, you can advise on that too please?
#!/bin/bash
#setup
echo "file entered"
chmod +r+x setup
echo "permissions ok"
cp /media/fixes1/Linux/*.* /home/adam/Desktop/*.*
echo"copy ok"
cd /home/adam/Desktop
echo "new desktop ok"
rug ca bin -–normal-output
# check for and install files
echo "files loaded"
cd /
hdparm -c 1 /dev/hdc
# set 32 bit CD-ROM IDE
hdparm -d 1 /dev/hdc
# set CD_ROM DMA on
echo "CD-ROM comfigured"
xine-check
# test xine configurations
cd /home/adam/Desktop
rm libdv*.rpm
rm w32*.rpm
rm libx*.rpm
rm xine-m*.rpm
rm xine-ui*.rpm
echo "program finished"2.6GHz Celeron, 1GB, 160GB, 128Mb SuSe11.2; PCTV, GBit eth0 on P4PE, 10/100 eth1 <Ride to ride again>.
- 02-12-2007 #2
First off, this is not a Python script. It is a bash shell script.
As for your problem, if it's not running at all when you type ./<filename> you most likely don't have the permissions right. The line in your script: 'chmod +r+x setup' looks conspicuously like something you should do outside of the script at the bash prompt.
try:
chmod +x <filename>
where <filename> is the name of your script
and then
./<filename>
- 02-13-2007 #3Linux Newbie
- Join Date
- Apr 2005
- Location
- West Oz
- Posts
- 140
Ta v much-it's working better-but still needs refinement-I'll
keep at it slowly.
2.6GHz Celeron, 1GB, 160GB, 128Mb SuSe11.2; PCTV, GBit eth0 on P4PE, 10/100 eth1 <Ride to ride again>.


Reply With Quote