9 More Discussions You Might Find Interesting
1. Shell Programming and Scripting
Hi I have a problem, I am attempting to write a bash script that goes through a file and can determine how many characters are at a set point in a line starting with QTY+113:100:PCE, If it detects 3 digits (number in bold) then pad it out with 12 zero's
If there are only two digits then pad it... (8 Replies)
Discussion started by: firefox2k2
8 Replies
2. Shell Programming and Scripting
Could anyone help me with the below scripting task.
my requirement is as below
1. I have two directories /var/tmp/dir1 & /var/tmp/dir2
once i run the script test.sh it should ask as below.
Please choose the below path 1 (or) 2
1. /var/tmp/dir1
2. /var/tmp/dir2
else. exit
2. once i... (4 Replies)
Discussion started by: praveenkumar.v
4 Replies
3. Red Hat
Dear Expert,
I 've installed Redhat linux AS3, My machine having Inbuild network card (Intel(R) 82566DM-2 Gigabit Network Connection).
I've downloaded e1000e-2.3.2 from Intel site, but its not working for my machine. I'm unable to configure the Network.
ifconfig eth0 xx.xx.xx.xx netmask... (0 Replies)
Discussion started by: Mohammed Faiz
0 Replies
4. Shell Programming and Scripting
I need to grab key combination from a bash script and store it in a variable. Is there any way to do this?
Thanks in advance! (1 Reply)
Discussion started by: prism1
1 Replies
5. Shell Programming and Scripting
Hello. This is my first post to this forum. I've read many of the posts over the last two or three years and I've learned a lot.
I'm creating a live Linux distribution using the Linux Live Scripts -- just as a hobby project -- and I'm wanting to create an automated way for a user to copy the... (7 Replies)
Discussion started by: godzillarama
7 Replies
6. UNIX for Dummies Questions & Answers
Why does Linux use files to represent drives such as pipes and network connections? (2 Replies)
Discussion started by: MS_CC
2 Replies
7. Shell Programming and Scripting
hi
how floppy disks, CDs and flash drives (pen drives) are accessed in UNIX?
thanks (0 Replies)
Discussion started by: nokia1100
0 Replies
8. Shell Programming and Scripting
Hi,
I need help to detect Vmware on Linux and SunOS.
I need to know if Vmware is installed on the box. If yes then if it is a physical or a virtual machine.
Thanks in advance,
amittal (2 Replies)
Discussion started by: amittal
2 Replies
9. UNIX for Dummies Questions & Answers
I know that Unix is different from windows in that it needs more manual configuring but how do I get Solaris 8 (Intel version) to recognize my floppy drive and cd-rom??
I mean does it automatically detect the drives at startup and I have to mount them or do I have to create the drives somehow and... (1 Reply)
Discussion started by: eloquent99
1 Replies
RBASH(1) General Commands Manual RBASH(1)
NAME
rbash - restricted bash, see bash(1)
RESTRICTED SHELL
If bash is started with the name rbash, or the -r option is supplied at invocation, the shell becomes restricted. A restricted shell is
used to set up an environment more controlled than the standard shell. It behaves identically to bash with the exception that the follow-
ing are disallowed or not performed:
o changing directories with cd
o setting or unsetting the values of SHELL, PATH, ENV, or BASH_ENV
o specifying command names containing /
o specifying a file name containing a / as an argument to the . builtin command
o specifying a filename containing a slash as an argument to the -p option to the hash builtin command
o importing function definitions from the shell environment at startup
o parsing the value of SHELLOPTS from the shell environment at startup
o redirecting output using the >, >|, <>, >&, &>, and >> redirection operators
o using the exec builtin command to replace the shell with another command
o adding or deleting builtin commands with the -f and -d options to the enable builtin command
o using the enable builtin command to enable disabled shell builtins
o specifying the -p option to the command builtin command
o turning off restricted mode with set +r or set +o restricted.
These restrictions are enforced after any startup files are read.
When a command that is found to be a shell script is executed, rbash turns off any restrictions in the shell spawned to execute the script.
SEE ALSO
bash(1)
GNU Bash-4.0 2004 Apr 20 RBASH(1)