Execute file remotely via FTP

Discussion in 'Windows Desktop Systems' started by Powerchordpunk, Jan 22, 2003.

  1. I need to execute a batch file which will execute another application remotely via ftp. I have a server which supports the SITE EXEC command (which allows me to execute programs remotely). I can use this command to execute batch files which then execute other programs, but the problem I have lies in the fact that my ftp server starts as a system process.

    Normally, when you locally execute a batch file that in turn starts 1 or more programs, the batch file not being a system process but rather a process for a specific user, starts the program(s) as specific user processes, for the same user that executed the batch file.

    I want to have the program i want start for a specific user, executed remotely, but i can't do that now, since all programs executed remotely end up being a system process.

    For example (a rather bad example), I can start edonkey as a system process remotely via ftp from school if i forget to turn it on before i leave, but this means that when I get home, I can't work with the program since its a system process, started by a batch file executed by a system process (ftp server).

    Is there any solution to my predicament so I can execute remotely so programs start as a process for a specific user using the file transfer protocol? Right now, all I can do successfully is print jobs w/ notepad because i know the command line and it doesn't matter if its a system process. Is there some batch file command that specifically starts a program as a process for a specific user?

    Thanks for your help. sorry for confusing you if i did.
     
  2. sailgreg

    sailgreg Guest

    If the computer is windows, adding runas (username) (program name) in front of the program name will work if it works like the Run Box :p

    On linux I dont know how :(
     
  3. Luna64

    Luna64 Guest

    Lol, a silly pirate trying to get good stuff by using an FTP server.

    Lame....


    I remember the days when that used to be popular. Goes along with the whole HTTP pirate thing.
     
  4. Burpster

    Burpster Guest

    lol ....FTP is far superior to P2P ...tho a tad bit more complicated these days :)

    just as a footnote http is also alive and well :)