Advertisement
Help Keep Boards Alive. Support us by going ad free today. See here: https://subscriptions.boards.ie/.
If we do not hit our goal we will be forced to close the site.

Current status: https://keepboardsalive.com/

Annual subs are best for most impact. If you are still undecided on going Ad Free - you can also donate using the Paypal Donate option. All contribution helps. Thank you.
https://www.boards.ie/group/1878-subscribers-forum

Private Group for paid up members of Boards.ie. Join the club.

Running progs from a different machine with a single command

  • 15-07-2005 02:05PM
    #1
    Registered Users, Registered Users 2 Posts: 37,485 ✭✭✭✭


    Ok, here's the goof...I'm sitting at linbox1 (for example), I want to rlogin to linbox2, set the display to linbox1:0 (xhost permissions are ok), then run korganizer.

    Is it possible to do this in a one liner? Ideally I'd like to just have an icon that I can clickity click.

    Thanks in advance.


Comments

  • Closed Accounts Posts: 6,718 ✭✭✭SkepticOne


    Try

    rsh linbox2

    followed by the commands you want separated by a ";".


  • Registered Users, Registered Users 2 Posts: 3,744 ✭✭✭deRanged


    you'd be better off using ssh than rsh. it's likely rsh won't be installed anyway if they're recent enough distros.

    ssh -X remotemachine command

    this will ask you for your password but you can install ssh keys to
    avoid that.

    you can then create an icon to run that command.


  • Closed Accounts Posts: 6,718 ✭✭✭SkepticOne


    Sorry, I meant to add if you go down the rsh route that the list of commands (separated by the ; character) must be in double quotes.

    e.g. rsh linbox2 "command1 ; command2 ; ...".

    ssh is better.


Advertisement