Koozali.org: home of the SME Server

Mounting Question

Joe

Mounting Question
« on: June 26, 2003, 08:51:53 PM »
If I was to mount my a linux machine from SME could I check that the remote machine was "alive" before actually going ahead fully with my script.

Story is... I created a script to backup my users on sme to burn on dvd and had a situration once where the remote machine was not turned on therefore putting all my backup data onto the SME machine as it couldnt mount the remote PC and as my backup data is larger than the current HD on SME server it crashed my server, I'm sure there must be a perl way of doing this but I dont no any perl :-( so has anyone got any pointers?

Thanks in advance!!


Joe

Michael Soulier

Re: Mounting Question
« Reply #1 on: June 26, 2003, 09:22:02 PM »
Joe wrote:
>
> If I was to mount my a linux machine from SME could I check
> that the remote machine was "alive" before actually going
> ahead fully with my script.

It's difficult to determine what you're trying to say here, but I'll take a stab. You want to know if your server has mounted a particular NFS or SMB mount before running a particular script on the server?

ssh mount | grep

You can set up passwordless ssh, and permit that key to only run the mount command with no arguments.

Mike

Joe

Re: Mounting Question
« Reply #2 on: June 26, 2003, 09:29:00 PM »
Sorry, Im trying to mount NFS (knew i forgot something)

So I just add ssh mount | grep (to my script)

then that would confirm that my redhat machine is turned on, now my SME server can carry on performing the rest of the script.

Thanks very much for the info provided.

Cheers

Joe