Find the answer to your Linux question:
Results 1 to 5 of 5
Hi I run BOINC on about 12 Linux command line PC's. I have two XP PC's and the one that I use for looking at all the others is an ...
  1. #1
    Just Joined! Dingo001's Avatar
    Join Date
    Apr 2008
    Location
    Canada
    Posts
    7

    Is there a way to send a command to Linux from a MS batch File??

    Hi

    I run BOINC on about 12 Linux command line PC's. I have two XP PC's and the one that I use for looking at all the others is an XP Pc using Boinc_mgr or Boinc view.

    Is there a way to send a command to Linux from a MS batch File??

    In windows he command is
    "c:\Program Files\Boinc\boinccmd.exe" --host 192.1.168.86 --passwd **** --project MilkyWay@home update

    In Linux BOINC is located in a different folder and the batch file does not update them because it can't find them.

    I am running mainly command line versions of Ubuntu so the command would be
    /usr/bin/boinc_cmd --host 192.1.168.20 --passwd ***** --project MilkyWay@home update

    Is there a way to pass this to Linux from an MS Batch File??

    To use linux and the cron function I would need to hook each pc up to a keyboard, monitor etc and change some files. I was hoping that I could do it from an XP PC bat file.


    so Is there a way to send a command to Linux from a MS batch File??

  2. #2
    Linux Engineer GNU-Fan's Avatar
    Join Date
    Mar 2008
    Posts
    935
    Is the line between the WinPC and the receivers secure?
    Debian GNU/Linux -- You know you want it.

  3. #3
    Just Joined! Dingo001's Avatar
    Join Date
    Apr 2008
    Location
    Canada
    Posts
    7
    Yes it is an internal network

  4. #4
    Linux Engineer GNU-Fan's Avatar
    Join Date
    Mar 2008
    Posts
    935
    Google for "expect" and use it together with telnet.

    Or use netcat with the -e option.
    Debian GNU/Linux -- You know you want it.

  5. #5
    Just Joined! Dingo001's Avatar
    Join Date
    Apr 2008
    Location
    Canada
    Posts
    7
    Looks too hard for a newbie in scripting like me. I guess I will just have to hook up each maching and do it that way.

    Thanks for the reply though, it was quick and gave me an answer.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
...