Skip to content

Automating linux tasks..

Featured Replies

Bit of a longshot this...

im feeling particuarly lazy today.(as ever)

part of my daily work routine is doing various bits and bobs on various different unix/linux servers..

i use PuTTy to connect to them..

in the evening its pretty much the same, but for submitting backup jobs, running cleanup commands etc..

what im wondering, is if theres any *client side* applications that can be scripted.. eg, telnet onto XYZ server, execute xxx comannd, then close connection and connect to another server and run zzz command..

would make my life easier.

any ideas?

There's a putty app called plink that might be what you're after - allows you to run commands remotely, and from a Windows machine too. So you could write yourself a shell script to use plink to execute what you're after doing...though personally, I'd just cron it on the servers...

Rob.

  • Administrators

If the commands are the same then cron is your friend...

#IF they differ then cron and perl or python are your friend.

Although the real linu x folk will be along I'm sure with good answers.

As ColinD says, cron and at are your friends.

Depending on how "techie" you want to get, there are other ways to manage things. The high-tech way is to use inetd to spawn a particular job when it sees a connection request on a particular (user specified) port. It is difficult to make this work securely, though.

Other solutions which I have used successfully in the past have included mailing a request from one machine to another (with some sort of mail agent scanning incoming mail for the request message), and FTP'ing a request from one machine to another (with a job on the server scanning the FTP directory for incoming files).

Create an account or sign in to comment

Recently Browsing 0

  • No registered users viewing this page.

Important Information

Welcome to BRISKODA. Please note the following important links Terms of Use. We have a comprehensive Privacy Policy. We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.

Account

Navigation

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.