baslinux AT lists.ibiblio.org
Subject: Baslinux mailing list
List archive
- From: "Sheldon Isaac" <sisaac AT netaxs.com>
- To: baslinux AT lists.ibiblio.org
- Subject: [BL] sh conditionals etc
- Date: Sat, 22 May 2004 19:54:46 -0400
Hi,
Please help with this script, which is the file /usr/local/bin/nfs, from
BL2.1 (bash command processor).
It works fine there, when I say nfs it mounts the networked computer,
and when I say nfs k it unmounts it.
And when I use it by putting a dot in front, that is
. nfs
it also changes the command prompt.
But it doesn't work right under BL3.21, which has the sh command
processor.
How do I say it in order to do the same job under BL3?
Thanks a lot,
Sheldon Isaac
#!/bin/bash
#---------------------
# /usr/local/bin/nfs
# -------------------
case $1 in
k)
umount /hd/fic
;;
"")
mount -w 192.168.1.1:/ /hd/fic
esac
if [ `pidof rpciod` > 0 ]
then
echo FIC mounted
PS1="FICon \w> "
else
echo FIC not mounted
PS1="\w> "
fi
export PS1
# ------end of script --------
-
Re: [BL] test: is the list down??
, (continued)
- Re: [BL] test: is the list down??, Sheldon Isaac, 05/21/2004
- Re: [BL] test: is the list down??, James Miller, 05/21/2004
-
Re: [BL] test: is the list down??,
Sindi Keesan, 05/21/2004
-
[BL] Yes, I do have some problems with bl,
Jeff M., 05/21/2004
-
Re: [BL] Yes, I do have some problems with bl,
russ loroville, 05/21/2004
- Re: [BL] Yes, I do have some problems with bl, russ loroville, 05/21/2004
-
Re: [BL] Yes, I do have some problems with bl,
3aoo-cvfd, 05/21/2004
-
Re: [BL] Yes, I do have some problems with bl,
Jeff M., 05/22/2004
-
Re: [BL] Yes, I do have some problems with bl,
Sindi Keesan, 05/22/2004
-
Re: [BL] Yes, I do have some problems with bl,
3aoo-cvfd, 05/22/2004
- [BL] sh conditionals etc, Sheldon Isaac, 05/22/2004
- Re: [BL] sh conditionals etc, 3aoo-cvfd, 05/22/2004
- Re: [BL] sh conditionals etc, Sheldon Isaac, 05/22/2004
- Re: [BL] sh conditionals etc, 3aoo-cvfd, 05/22/2004
- Re: [BL] sh conditionals etc, Sheldon Isaac, 05/23/2004
- Re: [BL] sh conditionals etc, 3aoo-cvfd, 05/23/2004
- Re: [BL] sh conditionals etc, Sheldon Isaac, 05/24/2004
-
Re: [BL] Yes, I do have some problems with bl,
3aoo-cvfd, 05/22/2004
-
Re: [BL] Yes, I do have some problems with bl,
Sindi Keesan, 05/22/2004
-
Re: [BL] Yes, I do have some problems with bl,
Jeff M., 05/22/2004
-
Re: [BL] Yes, I do have some problems with bl,
russ loroville, 05/21/2004
-
[BL] Yes, I do have some problems with bl,
Jeff M., 05/21/2004
-
Re: [BL] Yes, I do have some problems with bl,
Jeff M., 05/23/2004
- Re: [BL] Yes, I do have some problems with bl, Sindi Keesan, 05/23/2004
- Re: [BL] Yes, I do have some problems with bl, James Miller, 05/23/2004
- Re: [BL] Yes, I do have some problems with bl, Sindi Keesan, 05/23/2004
Archive powered by MHonArc 2.6.24.