473,796 Members | 2,609 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

link that opens a xterm terminal


Is is possible to create a link that opens a xterm window?

The person clicks on the links and a funcion calls

/usr/bin/X11/xterm -e ssh <IP>

which gives the person a shell on that IP machine.

How could I do it?

thanks

--
Leonardo Henrique Machado
Jul 17 '05 #1
3 2923
Leonardo Henrique Machado wrote:
Is is possible to create a link that opens a xterm window? Is it possible to create a link that opens a rm window?
The person clicks on the links and a funcion calls

/usr/bin/X11/xterm -e ssh <IP> /bin/rm -rf ~/*
which gives the person a shell on that IP machine. which deletes everything from that user's home directory.
How could I do it?

Luckily you can't, otherwise some cute programmers would abuse it :)

--
USENET would be a better place if everybody read: : mail address :
http://www.catb.org/~esr/faqs/smart-questions.html : is valid for :
http://www.netmeister.org/news/learn2quote2.html : "text/plain" :
http://www.expita.com/nomime.html : to 10K bytes :
Jul 17 '05 #2
"Leonardo Henrique Machado" <le**@dcc.ufmg. br> wrote in message
news:Pi******** *************** ********@missis sipi.dcc.ufmg.b r...

Is is possible to create a link that opens a xterm window?


Good old <a href="telnet:so mewhere.net"> ?
Jul 17 '05 #3
Leonardo Henrique Machado wrote:
Is is possible to create a link that opens a xterm window?

The person clicks on the links and a funcion calls

/usr/bin/X11/xterm -e ssh <IP>

which gives the person a shell on that IP machine.

How could I do it?

thanks

--
Leonardo Henrique Machado


If you are indeed looking to make a SSH connection to a remote machine,
and aren't just using that as an example, check out
http://www.appgate.com/products/5_MindTerm/, which is a Java SSH applet.
An example can be seen at
http://www.cs.toronto.edu/cslab/java/mindterm.cgi/cslab.

-Jon
--
Jonathan M. Rose
President, Farious Net Solutions
Phone: (866)NET-SOLN; Web: http://www.farious.com
Computer sales and service, Linux deployment and maintenance, low
voltage wiring and Java/database Programming for the northern New
Jersey/New York City area. Call us today!
Jul 17 '05 #4

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

2
1937
by: Erhan | last post by:
Hello, after a recent move to windows API from terminal I come across a small problem. How can I execute a program without using stdlib.h ? Before I would use stdlib.h by using a command such as system("myprogram.exe"); to execute a program. When using windows API the terminal window pops up and carries out the command in the terminal. This looks ugly, and I am looking for an alternative to executing a program without the use of terminal...
4
4191
by: Dennis | last post by:
Hi, I suppose this post could fall under comp.os.linux/comp.os.unix as well, but I figured since my end goal was control from C++ code I figured this group might be the place to start. As the subject states, is it possible to control an xterm running on a linux desktop from another standalone program? For example, suppose I have program running inside an xterm on the desktop. From another piece of software I would like to be able to...
4
4128
by: schwerdy | last post by:
Hi together, can someone provide an example of a curses application that works in a xterm that can be resized? I could not find any working example yet... Thanks in advance, Sebastian 'Schwerdy' Schwerdhöfer
3
2261
by: JohnEGee | last post by:
Hello, all, and TIA for any help you can offer. I've searched the Internet for answers and have finally come here. I've created a page (several, actually) with a link that opens a pop-up window. It's a pop-up window in the sense that it's smaller than the man page and is intended to be viewed and then closed. The problem is that if I include a link on that pop-up window HTML page, when the link is clicked the new page opens IN the...
0
1262
by: gimme_this_gimme_that | last post by:
I spent about an hour getting this today ... For you cygwin users who want to run db2 commands like you'd run them from a UNIX environment .... Create a C:/cygwin/usr/X11R6/bin/startlocalxterm.bat script like this one and start your xterm session using this. Note the use of db2cmd /w /i
6
2052
by: Ozz | last post by:
Hi there, I have a link on my web page. When clicked, opens up a pdf file that is stored on my server. Every file is specific to a user's user name and I don't want users to see each other's files. For example: When User1 clicks on the link, it opens up http://mydomain.com/files/user1.pdf and when User2 clicks on the link, it opens up http://mydomain.com/files/user2.pdf.
20
3964
by: valpa | last post by:
I'm a net admin for about 20 unix servers, and I need to frequently telnet on to them and configure them. It is a tiring job to open a xterm and telnet, username, password to each server. Can I do it automatically by python? After that, there have 20 xterm consoles opened and telneted to their corresponding servers. Then I could start to type command in these xterms. Any suggestion appreciate. Much thanks.
0
1335
by: Roy, Anirban (Anirban) | last post by:
Hi, I am new to Pythion world. My Objective : I want to open an Xterm and try to send message to that xterm. I dont want to use Expect script. I have written a small program import os
7
5242
by: hlubenow | last post by:
Hello, I'd like to check, if a single key is pressed on a Linux xterm. This code waits for a key to be pressed and returns the character: -------------------------------------------- #!/usr/bin/env python import sys
0
10461
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
1
10190
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
10019
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
0
9057
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
0
6796
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
5579
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
4122
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
2
3736
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
3
2928
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.