MottS Posted December 1, 2002 Report Share Posted December 1, 2002 I posted that on the other forum (club-init) but since most of the gurus are here now.. lol Once I'm in I get smb: > Now, if I type '?' I get smb: > ?? altname archive blocksize cancel cd chmod chown del dir du exit get help history lcd link lowercase ls mask md mget mkdir more mput newer open print printmode prompt put pwd q queue quit rd recurse rename rm rmdir setmode symlink tar tarmode translate ! Which command remotly execute a .exe on a windows computer? .. I tryed 'open blablabla.exe' but it didn't work. Is it possible? Thkx MottS Quote Link to comment Share on other sites More sharing options...
Pzatch Posted December 1, 2002 Report Share Posted December 1, 2002 I don't believe that you can execute a command on a remote computer with Samba. Though I think that you can run a program on your computer thats stored on a remote one if yours has the ability.I think you'll have to Telnet into it to have the ability of remote executiion. Quote Link to comment Share on other sites More sharing options...
MottS Posted December 2, 2002 Author Report Share Posted December 2, 2002 So what are all these commands about? What about 'open' ? Why there is no 'exec' or something? Is it possble to make 'self-executing' programs then if we can't exec them remotly? Quote Link to comment Share on other sites More sharing options...
Pzatch Posted December 3, 2002 Report Share Posted December 3, 2002 I can "open" 'files on a windows box like email and such but I can't "run" a "program" on a windows box. Thats just a plain out and out security violation that even windows(yes even them) wouldn't let happen. Quote Link to comment Share on other sites More sharing options...
johnnyv Posted December 3, 2002 Report Share Posted December 3, 2002 in unix you can open a x session on the other computer and log in as a local user & exe files on that computer vnc same thing, runs on windows to. you can telnet into windows but thats cmd line only your problem is, you are not trying to execute programs on the win box, but trying to use the exe on your linux box. If you had 2 win98's for example you would still not be able to execute an exe on another box, you might run the program but it would be run on the box you are sitting at. The only way i know to have files execute on the other machine is to use a server of some type on the box in question. Eg apache with mod_php or mod_perl you would make a webpage on the remote server box eg) exec.php /**************************************************/ <? $command="C:windowsnotepad.exe"; // the command you want to execute $worked = exec("$command"); // exec() execute the command it returns true/false // therefore we can look at $worked to see if it was successful or not. if($worked == 1) //if $worked was true { $message = "The program was executed"; } else // if $worked was false { $message = "The program failed to execute"; } ?> <html> <head> <title>executes some predefined program in this case notepad</title> </head> <body> <h1>executions r us</h1> <p><? echo $message; // displays the message on the web page ?></p> </body> </html> /**************************************************/ to run this script you would simply open a browser and type in http://the_ip_of_the_box/the_directory_wit...cripts/exec.php thats all folks. note: by running this script the notepad would not open on your computer but the one with the apache server on it. This should work for a win95/98 computer most likely not for nt based one as you have to set all the file/folder permissions up on nt. Probably not what your looking for aye? You wanna run windows programs on a windows computer and display them on your linux box right? vnc is probably your best option for that (if it involves sound, it's a pain apparently). Quote Link to comment Share on other sites More sharing options...
theYinYeti Posted December 3, 2002 Report Share Posted December 3, 2002 samba is only a files/printers sharing protocol. You can only access things. Execution is your machine's job, and your machine doesn't have Windows (depending on the app, Wine may be OK). If it is remote execution that you want, I think VNC is the only solution, unless your Windows machine is a NT terminal Server or XP (in this case you can use the more efficient rdesktop). Yves. Quote Link to comment Share on other sites More sharing options...
MottS Posted December 3, 2002 Author Report Share Posted December 3, 2002 Thx all for all you replies.. I really appreciate it. That's kind of sad... I would have like to start things up on one of my friends computer without installing anything like Apache or VNC .. lol Yes I know about VNC .. I'm using it to remotly connect to my desktop. But I still have to execute some stuff on my computer .. anyway. Thx MottS Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.