09-10-2010
Note that eval isn't really limited, so if this is supposed to be any sort of secure or restricted shell, not a good idea. Not too hard to devise a way to do anything up to the limits of the login's permissions.
10 More Discussions You Might Find Interesting
1. UNIX for Dummies Questions & Answers
Suppose I have a script named "sc.sh"
in the script how to print out its name "sc.sh"? (3 Replies)
Discussion started by: meili100
3 Replies
2. Linux
I want to create a script to simulate a process that hangs to test a java application. My java app executes a system command, which can also be executing scripts, etc. Any ideas on such a script?
The java code is:
Runtime rt = Runtime.getRuntime();
Process p = rt.exec("sh... (4 Replies)
Discussion started by: brendan76
4 Replies
3. Shell Programming and Scripting
I am running HPUX and using WLM (workload manager). I want to write a script to fork CPUs to basically take CPUs from other servers to show that the communication is working and CPU licensing is working. Basically, I want to build a script that will use up CPU on a server. Any ideas? (2 Replies)
Discussion started by: cpolikowsky
2 Replies
4. Shell Programming and Scripting
hi everyone,
I have a question about the java object oriented function which to simulate in bash script...
here is the function
"session.getMaxInactiveInterval() / 60 "
got any web can read this function? coz i need to simulate to bash script...
Hope someone give me a suggestion... (0 Replies)
Discussion started by: ryanW
0 Replies
5. Programming
Does anybody know how to simulate press Fn+Scroll Lk in Linux c?
Thanks in advance! (10 Replies)
Discussion started by: liuyan03
10 Replies
6. Programming
Writing a Tool to simulate non-sequential disk I/O (simulate db file sequential read) in C POSIX
I have over the years come across the same issue a couple of times, and it normally is that the read speed on SAN is absolutely atrocious when doing non-sequential I/O to the disks. Problem being of... (7 Replies)
Discussion started by: vrghost
7 Replies
7. Shell Programming and Scripting
----------- Summary -----------
I need a command/set of commands that can help me simulate a shell terminal via a PHP web page using commandline functions. How can I combine the power of nohup and a while loop to:
start the shell,
execute commands and print output (and errors i.e. 2>&1)... (8 Replies)
Discussion started by: blogmaster
8 Replies
8. Shell Programming and Scripting
Hello,
Please, how can I complete this script:
Thank you (2 Replies)
Discussion started by: chercheur857
2 Replies
9. Shell Programming and Scripting
I am using Ubuntu 12.4
I am running the following script:
++++++++
#!/bin/bash
while ; do
xdotool mousemove 248 539 click 1 &
sleep 3
done
+++++++++
This moves the mouse on the specified position on the screen and clicks that pauses the script for 3 seconds and repeats the... (2 Replies)
Discussion started by: alfarnume
2 Replies
10. Shell Programming and Scripting
so i'm using the following script to attempt to simulate a user visiting a page but unfortunately, it doesn't look like this is working:
wget -nv -r "http://www.mywebsite.com"
does anyone have a better idea of how to do this? the goal here is to run a wget command from a linux host to a... (3 Replies)
Discussion started by: SkySmart
3 Replies
CHSH(1) User Commands CHSH(1)
NAME
chsh - change your login shell
SYNOPSIS
chsh [-s shell] [-l] [-u] [-v] [username]
DESCRIPTION
chsh is used to change your login shell. If a shell is not given on the command line, chsh prompts for one.
chsh is used to change local entries only. Use ypchsh, lchsh or any other implementation for non-local entries.
OPTIONS
-s, --shell shell
Specify your login shell.
-l, --list-shells
Print the list of shells listed in /etc/shells and exit.
-u, --help
Print a usage message and exit.
-v, --version
Print version information and exit.
VALID SHELLS
chsh will accept the full pathname of any executable file on the system. However, it will issue a warning if the shell is not listed in
the /etc/shells file. On the other hand, it can also be configured such that it will only accept shells listed in this file, unless you
are root.
EXIT STATUS
Returns 0 if operation was successful, 1 if operation failed or command syntax was not valid.
SEE ALSO
login(1), passwd(5), shells(5)
AUTHOR
Salvatore Valente <svalente@mit.edu>
AVAILABILITY
The chsh command is part of the util-linux package and is available from ftp://ftp.kernel.org/pub/linux/utils/util-linux/.
util-linux July 2009 CHSH(1)