I'm confused by your mention of "terminal 3" and 'cluster' and "connect as".   All that has me thinking you just want this:
Each machine in your cluster has a cron line like you have, but specifically outputs to /dev/tty3.   If you login at the physical console using screen 3 then you will see messages from the cron for _that_ machine.
If, however, you really meant /dev/pts/3, as in a remote connection to each machine, then confusion abounds.   A "pseudo-terminal" is allocated for remote connections like telnet or ssh in a somewhat unpredictable manner.   That is, you can't be sure which connection will get a particular pts, like pts/3.   Thus you couldn't be sure who would be getting the messages.

So what we're really wondering is if you want to output your messages to some _central_ place, like a file or a daemon, as you mentioned.   That is why Zaxo mentioned files and sockets.

If you wanted to append your output from each machine to one file somewhere you might need to use NFS, but I fear the machines might interfere with each other (corrupt the one file).   You could use a separate file for each machine and 'watch' the files with something like the Perl module File::Tail which can watch several files at once.

Or you could write a small daemon that accepts messages from each of your machines over network connections and then dumps them in a file for you to monitor.

Anyway, tell us more what you were really thinking about ...


In reply to Re: crontab program by shenme
in thread crontab program by Anonymous Monk

Title:
Use:  <p> text here (a paragraph) </p>
and:  <code> code here </code>
to format your post, it's "PerlMonks-approved HTML":



  • Posts are HTML formatted. Put <p> </p> tags around your paragraphs. Put <code> </code> tags around your code and data!
  • Titles consisting of a single word are discouraged, and in most cases are disallowed outright.
  • Read Where should I post X? if you're not absolutely sure you're posting in the right place.
  • Please read these before you post! —
  • Posts may use any of the Perl Monks Approved HTML tags:
    a, abbr, b, big, blockquote, br, caption, center, col, colgroup, dd, del, details, div, dl, dt, em, font, h1, h2, h3, h4, h5, h6, hr, i, ins, li, ol, p, pre, readmore, small, span, spoiler, strike, strong, sub, summary, sup, table, tbody, td, tfoot, th, thead, tr, tt, u, ul, wbr
  • You may need to use entities for some characters, as follows. (Exception: Within code tags, you can put the characters literally.)
            For:     Use:
    & &amp;
    < &lt;
    > &gt;
    [ &#91;
    ] &#93;
  • Link using PerlMonks shortcuts! What shortcuts can I use for linking?
  • See Writeup Formatting Tips and other pages linked from there for more info.