Hi,
I am using HP-UNIX.
I have a requirement as below
I have to change env twice like:
cadenv <env>
cadenv <env>
ccm start -d /dbpath
ccm tar -xvf *.tar
ccm rcv ....
mv *.tar BACKUP
but after I do the first cadenv <env> , I am unable to execute any of the later commands .
... (6 Replies)
Guys can I change the shell thru script, and after changing i want the script to continue on the previous machine.
Or please suggest other alternative if any???
#!/bin/ksh
HOST=`hostname`
echo "Running the script..."
for MyServer in `cat ServerNames.txt`
do
echo "\n Logging onto... (4 Replies)
Hello,
I am trying to ssh to a remote machine then change the shell and execute the script. However the ssh session hangs when i try to change the shell
ssh user@host 'csh ; source /home/cshProfile; $HOME/exec.sh'
if i do
ssh user@host ' $HOME/exec.sh'
This works however i... (2 Replies)
I bought a used MacBook G4 with Tiger 10.4.11
Running fine, then I noticed a few things were missing.
I don't have Terminal or Netinfo Manager in my Utilities!
I downloaded iTerm, but for some reason my shell is set to /dev/null
I know I can change my shell using Netinfo Manager, but I don't... (5 Replies)
Hi,
I want to change the shell prompt, using the cd command.
I have a shell prompt like this -
p78-mfx(dgaw1078/9781)$
Now i do this -
p78-mfx(dgaw1078/9781)$ cd log4j
here the shell prompt should change like this -
p78-mfx(dgaw1078/9781)log4j$ (6 Replies)
hi guys
I have a user that has been used for long time now that runs o C Shell...
now there is a need to change it to Bash Shell?
Can I cause a problem changing his shell from C to bash?
I mean apps or variables?
thanks a lot (3 Replies)
i have created users but those are not listing in HOME directory...and i want to change a shell to another shell...can any one reply me with solutions.. (4 Replies)
I'm trying to use a custom command in the configServer loadalert.txt file. the problem is that any command that I place inside the square brackets is simply not working.
This is a multi-part message in MIME format.
--------------
Content-Type: text/plain;
Content-Transfer-Encoding: 7bit
... (2 Replies)
Hi
We use "tcsh" shell . We do the following steps manually:
> exec ssh-agent zsh
> python "heloo.py" (in the zsh shell)
I am trying to do the steps above from a shell script
This is what I have so far
echo "Executing "
exec ssh-agent zsh
python "hello.py"
exit 0
Problem is... (5 Replies)
Hello all,
I would like to know how to change a value in my file.txt with 1 command. Using sed seems impossible since it contains \n and \s...
For example:
player:
version: V6R2013xD3HF5v1
partchecker:
version: 6.142.1-rc6
player_old:
version: V6R2013xD3HF5v1
... (6 Replies)
Discussion started by: jcanale
6 Replies
LEARN ABOUT DEBIAN
rbash
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)