LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Non-*NIX Forums > Programming
User Name
Password
Programming This forum is for all programming questions.
The question does not have to be directly related to Linux and any language is fair game.

Notices


Reply
  Search this Thread
Old 04-28-2003, 11:54 AM   #1
krcool32
LQ Newbie
 
Registered: Apr 2003
Posts: 3

Rep: Reputation: 0
need help on shell scripts!!!


Okay, I'm totally new to Unix! I need to pass this class in order to get my Computer Networking Degree. I have an assignment due tommorow. (PS- I'm not a programmer in anyway shape or form)

I just need help on this problem
Write a script to display the following Bash Builtin variables.
A. The PID of the current process
B. The parent PID of the current process
C. All the command line parameters in one long string. Input at least three parameters.
D. The count of the command line parameters
E. The file name of the script, be sure to use to the shell variable that provides this information.

Any help would be greatly appreciated!

Last edited by krcool32; 04-29-2003 at 05:50 AM.
 
Old 04-28-2003, 12:18 PM   #2
wapcaplet
LQ Guru
 
Registered: Feb 2003
Location: Colorado Springs, CO
Distribution: Gentoo
Posts: 2,018

Rep: Reputation: 48
Didn't your instructor give you some resources to answer these questions?
 
Old 04-28-2003, 01:39 PM   #3
krcool32
LQ Newbie
 
Registered: Apr 2003
Posts: 3

Original Poster
Rep: Reputation: 0
Yea, The book, but its like reading Greek!
 
Old 04-28-2003, 01:54 PM   #4
acid_kewpie
Moderator
 
Registered: Jun 2001
Location: UK
Distribution: Gentoo, RHEL, Fedora, Centos
Posts: 43,417

Rep: Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985
try reading it the right way up....

do not ask homework questions on this site. Your degree should be based on your knowledge and understanding, not ours.
 
Old 04-28-2003, 02:41 PM   #5
wapcaplet
LQ Guru
 
Registered: Feb 2003
Location: Colorado Springs, CO
Distribution: Gentoo
Posts: 2,018

Rep: Reputation: 48
Seems kind of strange that an instructor would just give a shell scripting assignment, at random, to non-programmers, without explaining how to do it.
 
Old 04-28-2003, 03:08 PM   #6
acid_kewpie
Moderator
 
Registered: Jun 2001
Location: UK
Distribution: Gentoo, RHEL, Fedora, Centos
Posts: 43,417

Rep: Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985
I got set an assignment about the contrast in roman life within the class structures they had. I was so scared. then i remembered *my* lecture didn't start for another hour, and went and drank tea instead.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Need help with shell scripts thorney Linux - Newbie 4 11-27-2005 11:18 PM
Shell Scripts benwy Linux - Software 1 06-09-2003 02:58 AM
Shell scripts anon227 Linux - Software 1 01-03-2003 03:11 PM
shell scripts nautilus_1987 Linux - General 3 08-30-2002 03:12 AM
shell scripts gui10 Programming 10 10-28-2001 02:46 AM

LinuxQuestions.org > Forums > Non-*NIX Forums > Programming

All times are GMT -5. The time now is 08:18 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration