LinuxAnswers - the LQ Linux tutorial section.
Go Back > Forums > Non-*NIX Forums > Programming
User Name
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.


  Search this Thread
Old 10-26-2004, 02:47 PM   #1
LQ Newbie
Registered: Oct 2004
Posts: 2

Rep: Reputation: 0
Shell scripts???

Hi, I am a student studying Linux. I was working on a script at school on a SuSE system. I took it home where I am running Fedora Core 2. I had set the -e switch for passwd to prompt user to reset passwd at first logon, but Fedora did not have this switch for passwd. How do you do something like this? How can you make a shell script that uses commands with switches if some distros may not have the same switch? Again I am sorry if this is a dumb question. Thanks.
Old 10-26-2004, 05:50 PM   #2
Senior Member
Registered: Nov 2002
Location: pikes peak
Distribution: Slackware, LFS
Posts: 2,577

Rep: Reputation: 48
do you have $BASH installed???
in a term window type
echo $SHELL
it should say /bin/bash if you have it.....
Old 10-27-2004, 06:28 PM   #3
LQ Newbie
Registered: Oct 2004
Posts: 2

Original Poster
Rep: Reputation: 0
Yes I do..


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
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 j0hn0n1 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

All times are GMT -5. The time now is 06:34 PM.

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