LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
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 10-14-2003, 10:43 AM   #1
mikis
LQ Newbie
 
Registered: Oct 2003
Location: Norway, Oslo
Distribution: Fedora Core 4, ClarkConnect
Posts: 7

Rep: Reputation: 0
bash/shell script


Hi !

I have written a simple meny in bash. The script works just fine, but I have one problem. I want to be able to start this script in any directory. Where in the fil structure do I have to copy the script to manage this?

One more thing. When I start my meny it shows information about the current user like username, date, pwd and so on. I also want to show the user group for the current user too, but I don`t know the command.

Michael
 
Old 10-14-2003, 11:09 AM   #2
Hko
Senior Member
 
Registered: Aug 2002
Location: Groningen, The Netherlands
Distribution: ubuntu
Posts: 2,530

Rep: Reputation: 108Reputation: 108
Re: bash/shell script

Quote:
Originally posted by mikis
I want to be able to start this script in any directory. Where in the fil structure do I have to copy the script to manage this?
Best place is /usr/local/bin

Quote:
Originally posted by mikis
I also want to show the user group for the current user too, but I don`t know the command.
That command is "groups".
 
Old 10-14-2003, 11:39 AM   #3
mikis
LQ Newbie
 
Registered: Oct 2003
Location: Norway, Oslo
Distribution: Fedora Core 4, ClarkConnect
Posts: 7

Original Poster
Rep: Reputation: 0
Thanks!

I appreciated it
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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
help with bash shell script !! taiwf Linux - Newbie 5 06-11-2006 06:07 PM
Bash shell script moodupani Linux - General 2 09-01-2005 06:14 AM
Bash Shell script bd1308 Linux - Hardware 9 08-22-2005 05:38 PM
bash shell script globeTrotter Linux - Newbie 5 06-03-2004 05:07 AM
bash shell script naka0naka Linux - Newbie 7 05-28-2004 03:06 PM


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

Main Menu
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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration