07-11-2003
I think this is not secure in any case. I don't really understand why your users don't like telnet/ssh. A telnet bash session has completion, history and all goodies a Web-based one won't have. Typing commands in a Web page and a telnet session -- what makes the difference? Moreover, it's slow. manpages doesn't display well, for example.
If they really want it Web-based, consider a Java telnet/ssh client like
http://javassh.org/
If they only need to carry out some predefined tasks, I think you may give them a Web interface with some menu options which execute the commands for them. But to have a command line directly attached to the Web is a very dangerous idea I can think of even if the user community is trusted.
10 More Discussions You Might Find Interesting
1. Shell Programming and Scripting
If I have a Perl CGI script (script01), which fills an array(s) with information and outputs a HTML page with a link to another CGI page (script02); is there anyway to pass the array(s) from "script01" to "script02" when the page visitor clicks the link?
Hope that makes sense!
:) (2 Replies)
Discussion started by: WIntellect
2 Replies
2. Shell Programming and Scripting
Hi folks,
We want to protect our ksh scripts from our customers.We don't want to let them the option to viewor modify the scripts.
Is there a way ro wrap a ksh script?
Thanks in advance,
Nir (2 Replies)
Discussion started by: nir_s
2 Replies
3. Shell Programming and Scripting
Hello, I've been trying to use find command to find and print out some files. When I execute the command on the command line I get the output as expected howerver when I run it in the script it doesn't wrap.
For example, this is nicely wraped
find /etc -perm -o=w -exec ll '{}' \;... (4 Replies)
Discussion started by: mirusko
4 Replies
4. Shell Programming and Scripting
Novice to perl here.
I have created a simple web page in perl, with only one submit button. I would like to execute a bash script on the same server when this button is clicked on.
Is this possible in perl? I have spent a few days researching this and am unable to find any useful information.... (0 Replies)
Discussion started by: pleonard
0 Replies
5. UNIX for Dummies Questions & Answers
By default, we use ksh (88) as our shell. I prefer bash, so I added this line to my .profile:
exec bash -o viI also added this to my .bashrc?:
#***********************************************
#These are important tweaks specific to BASH:
#***********************************************... (1 Reply)
Discussion started by: mrwatkin
1 Replies
6. Shell Programming and Scripting
Hi. I could use some help with my problem. I am creating a website. One option on this website is to delete a specified file, say an image, when the user clicks on it. I want to do this with CGI. I believe bash will be the easiest since I will just type the command "rm file". I also do not know... (4 Replies)
Discussion started by: JMooney5115
4 Replies
7. Homework & Coursework Questions
Use and complete the template provided. The entire template must be completed. If you don't, your post may be deleted!
1. The problem statement, all variables and given/known data:
This is a problem I am having with my 2 semester senior project. I have a LAMP server running Ubuntu 9.10 with... (8 Replies)
Discussion started by: JMooney5115
8 Replies
8. Web Development
Can anyone tell me how to export a variable from one perl CGI script to another perl cgi script when using a redirect.
Upon running the login.pl the user is prompted to enter user name and password. Upon entering the correct credentials (admin/admin) the user is
redirected to welcome page.
My... (3 Replies)
Discussion started by: Arun_Linux
3 Replies
9. Programming
Hi
I have a bash script which takes parameters
sh /tmp/gdg.sh -b BASE-NAME -n 1 -s /source/data -p /dest/data/archive -m ARC
gdg.sh will scan the /source/data and will move the contents to /dest/data/archive after passing through some filters. Its working superb from bash
I have... (0 Replies)
Discussion started by: rakeshkumar
0 Replies
10. Programming
Hi,
I am having two individual scripts
Script 1): CGI script - is a simple script which trigger bash script
Script 2): Bash script - is a script which execute which collects file system utilization information from all the Unix servers
If I am executing CGI script manually from command... (2 Replies)
Discussion started by: Naveen.6025
2 Replies
LEARN ABOUT OPENSOLARIS
cconsole
cconsole(1M) System Administration Commands cconsole(1M)
NAME
cconsole , crlogin, cssh, ctelnet - multi window, multi machine, remote console, login, ssh, and telnet commands
SYNOPSIS
$CLUSTER_HOME/bin/cconsole [-s] [ -l username] [clustername... | nodename...]
$CLUSTER_HOME/bin/crlogin [-l username] [clustername...
| nodename...]
$CLUSTER_HOME/bin/cssh [-l username] [-p ssh-port] [clustername...
| nodename...]
$CLUSTER_HOME/bin/ctelnet [clustername... | nodename...]
DESCRIPTION
These utilities initiate a multiple window connection to a set of specified hosts. There are three variations: one that is specifically
intended for remote console access while the others provide remote logins using rlogin, ssh, or telnet.
Each utility starts a host window for each of the specified hosts, as well as a common window. Input directed into the common window is
sent to each of these host windows.
This tool is useful for system administration tasks that require similar things to be done on each of several hosts. For tasks that are
identical on all hosts, typing in the common window sends the characters to all of the hosts. However, the host windows are normal terminal
windows so they can also be used one at a time (by moving the mouse into one of them and typing directly into it) to perform host specific
tasks.
The common window also allows the user to select which hosts receive the characters typed in the common window, so only the specified hosts
will receive input.
These utilities use entries in two different databases, /etc/clusters and /etc/serialports.
cconsole
The cconsole command provides remote console access through the telnet command. All normal telnet escape characters are available to the
user. See the telnet(1) man page for a complete listing of telnet escape characters. Because there are a few telnet escapes that are com-
monly used, they are provided here as well. The escape character is Control-], specified below as ^].
^] quit Quit the session. Analogous to ~. in tip and rlogin.
^] send brk Send a break signal to the remote system. This is what is needed to halt the Sun CPU. The normal key board sequence is
"L1-A."
crlogin
The crlogin utility provides remote login through the rlogin command to multiple cluster nodes.
cssh
The cssh utility establishes Secure Shell connections directly to the cluster nodes through the ssh command.
ctelnet
The ctelnet utility is similar to cconsole except that the connection is directly over the Internet.
OPTIONS
The following options are supported:
-l username Specifies the user name for the ssh connection. This option is passed to the cconsole, crlogin, or cssh utility when the
utility is launched from the CCP. The ctelnet utility ignores this option.
If the -l option is not specified, the user name that launched the CCP is effective.
-p ssh-port Specifies the Secure Shell port number to use. This option is passed to the cssh utility when the utility is launched from
the CCP. The cconsole, crlogin, and ctelnet utilities ignore this option,
If the -p option is not specified, the default port number 22 is used for secure connections.
-s Specifies using Secure Shell connections to node consoles instead of telnet connections. This option is passed to the
cconsole utility when the utility is launched from the CCP. The crlogin, cssh, and ctelnet utilities ignore this option.
If the -s option is not specified, the cconsole utility uses telnet connections to the consoles.
To override the -s option, deselect the Use SSH checkbox in the Options menu of the cconsole graphical user interface (GUI).
ENVIRONMENT VARIABLES
The following environment variables affect the execution of these utilities:
CLUSTER_HOME Location of Sun Cluster System tools. Defaults to /opt/SUNWcluster.
ATTRIBUTES
See attributes(5) for descriptions of the following attributes:
+-----------------------------+-----------------------------+
| ATTRIBUTE TYPE | ATTRIBUTE VALUE |
+-----------------------------+-----------------------------+
|Availability |SUNWccon |
+-----------------------------+-----------------------------+
|Interface Stability |Evolving |
+-----------------------------+-----------------------------+
SEE ALSO
rlogin(1), ssh(1), telnet(1), tip(1), ccp(1M), chosts(1M), cports(1M), clusters(4), serialports(4), attributes(5)
NOTES
The standard set of X Window System command line arguments are accepted.
Sun Cluster 3.2 8 Sep 2007 cconsole(1M)