User Name
Password

Go Back   Planetarion Forums > Non Planetarion Discussions > Programming and Discussion > Hardware and Tech Support

Reply
Thread Tools Display Modes
Unread 22 Nov 2002, 20:07   #1
Gayle29uk
Bitch
 
Join Date: Jun 2002
Location: North Yorkshire
Posts: 3,848
Gayle29uk is just really niceGayle29uk is just really niceGayle29uk is just really niceGayle29uk is just really nice
Um...

...I'm not sure if this is a really dumb question or not

I want to be able to create a desktop icon in windows to (basically) run ip-down on my linux box. Can I do this?
__________________
ACHTUNG!!!
Das machine is nicht fur gefingerpoken und mittengrabben. Ist easy
schnappen der springenwerk, blowenfusen und corkenpoppen mit
spitzensparken. Ist nicht fur gewerken by das dummkopfen. Das
rubbernecken sightseeren keepen hands in das pockets. Relaxen und vatch
das blinkenlights!!!
Gayle29uk is offline   Reply With Quote
Unread 22 Nov 2002, 20:10   #2
Structural Integrity
Rawr rawr
 
Structural Integrity's Avatar
 
Join Date: Dec 2000
Location: Upside down
Posts: 5,300
Structural Integrity needs a job and a girlfriendStructural Integrity needs a job and a girlfriendStructural Integrity needs a job and a girlfriendStructural Integrity needs a job and a girlfriendStructural Integrity needs a job and a girlfriendStructural Integrity needs a job and a girlfriendStructural Integrity needs a job and a girlfriendStructural Integrity needs a job and a girlfriendStructural Integrity needs a job and a girlfriendStructural Integrity needs a job and a girlfriendStructural Integrity needs a job and a girlfriend
euh.....

Is it possible to do it with one single command? You can put about every command in a link.
If it's more than one line, can you make a BAT from it?

How would you do it without a fancy icon?
__________________
"Yay"
Structural Integrity is offline   Reply With Quote
Unread 22 Nov 2002, 20:15   #3
Gayle29uk
Bitch
 
Join Date: Jun 2002
Location: North Yorkshire
Posts: 3,848
Gayle29uk is just really niceGayle29uk is just really niceGayle29uk is just really niceGayle29uk is just really nice
But won't it try to execute the file on the windows box? I would just try it but that means installing SAMBA (currently not running).

[edit] atm I telnet in or just switch the monitor over to Linux and click the KDE icon, would be handy to be able to do it quickly from windows though. [/edit]
__________________
ACHTUNG!!!
Das machine is nicht fur gefingerpoken und mittengrabben. Ist easy
schnappen der springenwerk, blowenfusen und corkenpoppen mit
spitzensparken. Ist nicht fur gewerken by das dummkopfen. Das
rubbernecken sightseeren keepen hands in das pockets. Relaxen und vatch
das blinkenlights!!!
Gayle29uk is offline   Reply With Quote
Unread 22 Nov 2002, 20:31   #4
Structural Integrity
Rawr rawr
 
Structural Integrity's Avatar
 
Join Date: Dec 2000
Location: Upside down
Posts: 5,300
Structural Integrity needs a job and a girlfriendStructural Integrity needs a job and a girlfriendStructural Integrity needs a job and a girlfriendStructural Integrity needs a job and a girlfriendStructural Integrity needs a job and a girlfriendStructural Integrity needs a job and a girlfriendStructural Integrity needs a job and a girlfriendStructural Integrity needs a job and a girlfriendStructural Integrity needs a job and a girlfriendStructural Integrity needs a job and a girlfriendStructural Integrity needs a job and a girlfriend
You could try making a batch file that creates a telnet session and executes the command.... I believe that is possible but you'll need to do the research yourself since I'm not familiar with telnet, nor making batch files.

I got a bit of code for an FTP batch script tho that might get you on the way:

Quote:
Yep, that's possible. Let's suppose the FTP commands you would type for doing that are:
open ftp.server.com
USER username
password
get file1.dat
get file2.dat

Then, the batch file would be:

@echo off
echo open ftp.server.com> SCRIPT.DAT
echo USER username>> SCRIPT.DAT
echo password>> SCRIPT.DAT
echo get file1.dat>> SCRIPT.DAT
echo get file2.dat>> SCRIPT.DAT
FTP -n -s:SCRIPT.DAT
del SCRIPT.DAT
__________________
"Yay"
Structural Integrity is offline   Reply With Quote
Unread 22 Nov 2002, 20:34   #5
Structural Integrity
Rawr rawr
 
Structural Integrity's Avatar
 
Join Date: Dec 2000
Location: Upside down
Posts: 5,300
Structural Integrity needs a job and a girlfriendStructural Integrity needs a job and a girlfriendStructural Integrity needs a job and a girlfriendStructural Integrity needs a job and a girlfriendStructural Integrity needs a job and a girlfriendStructural Integrity needs a job and a girlfriendStructural Integrity needs a job and a girlfriendStructural Integrity needs a job and a girlfriendStructural Integrity needs a job and a girlfriendStructural Integrity needs a job and a girlfriendStructural Integrity needs a job and a girlfriend
This MIGHT work.... can't test it cause I don't have a telnet server around here...

@echo off
telnet <IP addy of your linux box>
echo <the telnet command you want to send>
echo <another telnet command you want to send>
echo close
quit

then make a link to your bat file and you're set up
__________________
"Yay"
Structural Integrity is offline   Reply With Quote
Unread 22 Nov 2002, 20:37   #6
xtothez
ŻŻŻŻŻŻŻŻŻ
 
xtothez's Avatar
 
Join Date: May 2001
Location: Sept 2057
Posts: 1,813
xtothez has much to be proud ofxtothez has much to be proud ofxtothez has much to be proud ofxtothez has much to be proud ofxtothez has much to be proud ofxtothez has much to be proud ofxtothez has much to be proud ofxtothez has much to be proud ofxtothez has much to be proud ofxtothez has much to be proud of
Run an HTTP daemon and set the URL on the Windows box to point to a simple php script on the *nix box. The php script then runs the file.
__________________
in my sig i write down all my previous co-ords and alliance positions as if they matter because I'm not important enough to be remembered by nickname alone.
xtothez is offline   Reply With Quote
Unread 22 Nov 2002, 20:40   #7
BesigedB
Darling
 
BesigedB's Avatar
 
Join Date: Dec 2000
Location: Edinburgh
Posts: 890
BesigedB is a glorious beacon of lightBesigedB is a glorious beacon of lightBesigedB is a glorious beacon of lightBesigedB is a glorious beacon of lightBesigedB is a glorious beacon of light
the php would have to be running as root.
__________________
..
BesigedB is offline   Reply With Quote
Unread 22 Nov 2002, 20:45   #8
Gayle29uk
Bitch
 
Join Date: Jun 2002
Location: North Yorkshire
Posts: 3,848
Gayle29uk is just really niceGayle29uk is just really niceGayle29uk is just really niceGayle29uk is just really nice
Quote:
Originally posted by BesigedB
the php would have to be running as root.
Which mine most definitely does not

I'll try SI's suggestion though, that looks like it might work
__________________
ACHTUNG!!!
Das machine is nicht fur gefingerpoken und mittengrabben. Ist easy
schnappen der springenwerk, blowenfusen und corkenpoppen mit
spitzensparken. Ist nicht fur gewerken by das dummkopfen. Das
rubbernecken sightseeren keepen hands in das pockets. Relaxen und vatch
das blinkenlights!!!
Gayle29uk is offline   Reply With Quote
Unread 23 Nov 2002, 04:36   #9
MT
/dev/zero
Retired Mod
 
MT's Avatar
 
Join Date: May 2000
Posts: 415
MT is an unknown quantity at this point
You could take advantage of the fact that every login shell is executed by root, create an ip-up and ip-down user, and have a ssh login with them using public/private key, and their shell being the ip-up script etc. be just like clicking an icon on the desktop
__________________
#linux : Home of Genius

<idimmu> ok i was chained to a desk with this oriental dude
MT is offline   Reply With Quote
Unread 23 Nov 2002, 04:37   #10
MT
/dev/zero
Retired Mod
 
MT's Avatar
 
Join Date: May 2000
Posts: 415
MT is an unknown quantity at this point
Or a little perl daemon, running as root. Or any other IPC route.
__________________
#linux : Home of Genius

<idimmu> ok i was chained to a desk with this oriental dude
MT is offline   Reply With Quote
Unread 24 Nov 2002, 04:04   #11
mikay
Registered User
 
Join Date: Aug 2000
Location: UK
Posts: 228
mikay is an unknown quantity at this point
Or a socket, that would have to be the elegant way and take ya 10 mins.
__________________
<DrNick> hey i've been playing pa for ages and i know lots of people who bathe with 6 busty babes

<breeze|away> i agree about mang tho .. he is our mentor of perviness

R4: 48:25:13, 2E5 HC R5: n00b
R6: 3:10:1 Mangor, The Daddy
R7: 3:3:11 Retired
R8: c43 Finally free
PAX: 3:7:9 The Mentor of Perviness
mikay is offline   Reply With Quote
Reply


Thread Tools
Display Modes

Forum Jump


All times are GMT +1. The time now is 06:58.


Powered by vBulletin® Version 3.8.1
Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright İ2002 - 2018