Quote:
Originally Posted by foooooooofa
excuse me !
i posted what i done !!
|
Yeah ... chill out. Think about what you need to do.
Good start on the web page portion. Do some research on how to take input within a BASH script and how to parse that input.
We all get that you did "something" and we all also see the obvious which is that you need to now refine the script, adding to it, to fully satisfy the assignment.
The issue is that you haven't demonstrated that you've tried anything here to process input at all. So from our perspective, you're not "stuck" you haven't even given that part of it the slightest amount of effort and instead asked others to fill in that particular gap. There are plenty of examples and information about BASH programming available.
You were asked to complete about three major tasks: write a BASH script, use wget to access a page, and accept user input.
Now if/when you "try" to process user input and it's not quite going as ideally as you'd either like, or truly need it to work, then post the various attempts you've made and what those results are, as well as the desired result, and you'll likely get very helpful answers.
Example:
- "I wanted to print the letter A"
- "My first attempt was to say 'print A' and that didn't work"
- "My next attempt was to say 'print 0x41' and that didn't work"[*["My next attempt was to say 'echo A' and that sort of worked, but it only put it out to the console, I wanted to put that into a log file"
- "When I tried to put it into a log file I did 'echo A > /mylog.txt' and it gave me a permissions error"
That's a made up example where someone tried something a few times, made some progress, but got stuck.
You should follow the link in my signature about how to add
[code] tags to your post.
Also on the link for Blog Entries shown under my info, you can see that I have an entry about BASH programming and some tips on debugging scripts as well as writing them. The last code block example showing a BASH function named "present_options" actually takes input and processes it, in a brute force sort of manner, there are more elegant ways to do it, but just saying that there's 'an' example.