2

how is it possible to access one linux machine thru another. Following is the need

1) check if a linux machine say ab-080 exists or not.

2) if exists, then clean a directory. /tmp ( this can be done using tmpwatch or rm ...)

not aware at present of a command like the one in windows \unc path.....what is it.

Brgds,

kNish

5
  • 3
    Define "exists". Dec 13, 2010 at 20:01
  • 3
    ssh? <!--padding--> Dec 13, 2010 at 20:03
  • 2
    ssh, expect, NFS, Samba... (depends on what experience you want)
    – wkl
    Dec 13, 2010 at 20:04
  • 1
    @Ignacio: so existential o.0
    – Matt Ball
    Dec 13, 2010 at 20:06
  • @Matt - Hah, well played. :)
    – EEAA
    Dec 13, 2010 at 20:43

1 Answer 1

7

ssh ab-080 rm -r "/tmp/*"

2
  • 1
    you should probably escape or quote the *: ssh ab-080 'rm -r /tmp/*' Dec 13, 2010 at 21:38
  • good catch. that's what I get for writing in a hurry.
    – erjiang
    Dec 15, 2010 at 14:44

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .