02-03-2010
This online tutorial had no mention of the .gvfs issue. I found that out by running the script, then spending the next few hours trying to find why my permissions were denied. The .gvfs is located in /home/username. Im still not 100% on what it does or how it works and will do more reading on it today. However I tried chmod 777 and chown root under su and it still gave me permission denied. HOW IS THAT EVEN POSSIBLE!!!
Currently running ubunto 9.10 karmic
x86 plenty o' ram and two dual core 2ghz procs.
The function causing the problem is "home_space"
When I changed id -u to 1000(my group((is that a group, you know where root is 0?)) ) I weas able to push some results to the html page produced, permission denied errors show in bash, but not in the results ( pleasent suprise ).
Thank you again, and I am new to these forums... I promise I will get more concise when I learn what information will best help other members help me...
Writing shell scripts - Lesson 13: Positional Parameters
Above is a link to the tutorial I am following... I am a little farther along then this page, but this is where things start to fall apart.
10 More Discussions You Might Find Interesting
1. Shell Programming and Scripting
Dear All,
I'm trying to write a shell script that continously checks a certain folder. When a file is placed in the directory securely copies the file to another server.
I've got the secure copying working, but I don't know how to contiously check a directory for a new file and then use that... (3 Replies)
Discussion started by: duncan_glover
3 Replies
2. Shell Programming and Scripting
I have a folder with lots of file. e.g. a.txt, b.txt, c.txt.... I want to put these files from the source directory and place them in a destination directory in a specific order, such as /destination/a/a.txt, /destination/b/b.txt, /destination/c/c.txt, ......
Please help. Thx :confused: (3 Replies)
Discussion started by: aaron_fong
3 Replies
3. Shell Programming and Scripting
Hi,
I was using AIX - ksh shell , and inorder to debug shell script I used set -vx to echo all the commands which are being executed.
Can anybody tell me the corresponding method in HP-UX - in tcsh shell.
Regards
Shihab (1 Reply)
Discussion started by: shihabvk
1 Replies
4. UNIX for Advanced & Expert Users
Hi All,
How to debug the unix shell script? which one is the best way to do the debuging ?
suggession would be appreciate
Regards,
Siva P
Bangalore (2 Replies)
Discussion started by: psiva_arul
2 Replies
5. Shell Programming and Scripting
Hello, Some one asked me in the inteview.... The question is,
How do we debug the schell script before even running..... Interviewer
told me one clue... There is SET command to accomplish this... Can any
one tell me what kind of set commands.... Thanks. (2 Replies)
Discussion started by: govindts
2 Replies
6. Shell Programming and Scripting
. ./testFile.sh
url=http://ichart.finance.yahoo.com/table.csv?s= suf=&d=5&e=9&f=2009&g=d&a=1&b=4&c=1999&ignore=.csv
wget $url$s1$suf;
sleep 10;
cat header.txt > $s1.txt;
chmod 777 $s1.txt;
sed '1d' table.csv?s\=$s1 >> $s1.txt;
rm -Rf table*
Very new at shell scripting as you can see... (3 Replies)
Discussion started by: harte
3 Replies
7. Shell Programming and Scripting
Hello,
I'm new to Sheel script and I need your help for a script I need to develop (for me).
Indead, I have a software which log all entry from internet and save it in text file.
But, the log is practically unreadable because every 256 characters jump to a new line (even if the message is... (5 Replies)
Discussion started by: acidoangel
5 Replies
8. Homework & Coursework Questions
Use and complete the template provided. The entire template must be completed. If you don't, your post may be deleted!
1. The problem statement, all variables and given/known data:
"Create a shell script that changes the selected word to another word in all files from selected archive. The... (1 Reply)
Discussion started by: oibanuelos
1 Replies
9. Homework & Coursework Questions
1. The problem statement, all variables and given/known data:
Arguments:
http://farm9.staticflickr.com/8070/8212131370_8b6e8c10c5_c.jpg
I am given these three arguments. $1, $2, $3
The first argument is the path to a directory.
So, how would I go into the directory and compare files?
I... (5 Replies)
Discussion started by: spider-man
5 Replies
10. Shell Programming and Scripting
hi all
only the weirdest thing happened with me just now. I was debugging a shell script and I found that a step that was supposed to execute later was getting executed prior to another step for no reason. You know any ?
i mean have a look at the following command-
here it tries to grep... (7 Replies)
Discussion started by: leghorn
7 Replies