Networking Forums

Networking Forums > Computer Networking > Linux Networking > concept to execute small jobs on a remote machine

Reply
Thread Tools Display Modes

concept to execute small jobs on a remote machine

 
 
Ekkard Gerlach
Guest
Posts: n/a

 
      02-17-2004, 01:34 PM
In a SOHO-area (small office, 1 server, about 4 linux clients)
I need a concept to execute small jobs on remote machines,
mostly the server. The jobs are like purging printer
queues (CUPS, LPD), changing some configuration file of a
commercial program, manipulating some text in mails of user
accounts of the mail server, etc. The jobs have to be
executed automatically, there's no manual login possible.

Can you propose some concepts? Some pointers to search
with google may be enough.

My concept so far:
==================
This is my concept realised successfully two times so far:
Install user "dummy" and group "dummy" on any server and
any client. The normal users may ssh to user dummy of
other PC's (ssh-keys are exchanged, no passphrase) and
user dummy is allowed to execute some skripts defined in
/etc/sudoers. The ssh connection just executes these
jobs. Thats all. It's working! But are there some better
concepts?

thx
Ekkard
 
Reply With Quote
 
 
 
 
Michael W. Cocke
Guest
Posts: n/a

 
      02-17-2004, 10:55 PM
On Tue, 17 Feb 2004 14:34:21 +0000 (UTC), Ekkard Gerlach
<(E-Mail Removed)> wrote:

>In a SOHO-area (small office, 1 server, about 4 linux clients)
>I need a concept to execute small jobs on remote machines,
>mostly the server. The jobs are like purging printer
>queues (CUPS, LPD), changing some configuration file of a
>commercial program, manipulating some text in mails of user
>accounts of the mail server, etc. The jobs have to be
>executed automatically, there's no manual login possible.
>
>Can you propose some concepts? Some pointers to search
>with google may be enough.
>
>My concept so far:
>==================
>This is my concept realised successfully two times so far:
>Install user "dummy" and group "dummy" on any server and
>any client. The normal users may ssh to user dummy of
>other PC's (ssh-keys are exchanged, no passphrase) and
>user dummy is allowed to execute some skripts defined in
>/etc/sudoers. The ssh connection just executes these
>jobs. Thats all. It's working! But are there some better
>concepts?
>
>thx
>Ekkard



Fair warning - this idea is fairly half-baked. I came up with it some
years back when I had to queue jobs on an unattended remote OS/2
server that I couldn't just use telnet on for some unremembered
reason. It's fairly straightforward and just needs some shell
scripting...

Write a script that waits 60 seconds (or whatever interval works for
you) then checks for the existance of a file. If the file exists,
read a line from it and execute the contents of the line. Just write
whatever command you need executed into the file.

This has advantages and disadvantages over the ssh approach you
mention... for starters, you don't need ssh - you can do it with
regular telnet, or even bury it in a CGI on a web server, if that
suits your circumstances... Just set your permissions tightly and
bury the file. On the other hand, it's kludgy and there's no chance
for feedback - it's only good for batch commands.

Mike-

Mornings: Evolution in action. Only the grumpy will survive.
-----------------------------------------------------

Please note - Due to the intense volume of spam, we have
installed site-wide spam filters at catherders.com. If
email from you bounces, try non-HTML, non-encoded,
non-attachments.


----== Posted via Newsfeed.Com - Unlimited-Uncensored-Secure Usenet News==----
http://www.newsfeed.com The #1 Newsgroup Service in the World! >100,000 Newsgroups
---= 19 East/West-Coast Specialized Servers - Total Privacy via Encryption =---
 
Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Chemiker Chemikerin jobs ausland bonn zav jobs und praktika imausland jobboerse dresden arbeiten im europaeischen ausland thechatter12@googlemail.com Broadband 0 07-03-2008 03:15 PM
Small remote office and VPN =?Utf-8?B?TWljaGFlbA==?= Windows Networking 4 06-07-2004 02:05 PM
Run an X app on remote machine s Linux Networking 3 05-11-2004 10:57 PM
configuring remote web workplace in W2K3 Small Business Steve Windows Networking 1 02-06-2004 04:50 AM
Can't ping remote machine using its name Xitch14 Windows Networking 1 01-20-2004 04:53 PM



1 2 3 4 5 6 7 8 9 10 11