From: Tomasz Chmielewski <mangoo@wpkg.org>
To: nfs@lists.sourceforge.net
Subject: how to execute a script from NFS mount (which disconnected)?
Date: Tue, 22 May 2007 12:37:33 +0200 [thread overview]
Message-ID: <4652C7ED.9010309@wpkg.org> (raw)
This question may sound silly, but I didn't find a proper solution to it.
I have a script on a NFS share. The purpose of this script is to do some
network reconfiguration for Xen.
Unfortunately, it fails to execute somewhere in the middle.
Basically, the script brings the network interface down, does a bit of
reconfiguring, and then, the interface is brought up.
In a short form, the script looks like that:
#!/bin/bash
echo Start
ifdown bond0
echo Step 1...
sleep 4s
echo Step 2...
sleep 4s
echo Step 3...
sleep 4s
echo Step 4...
sleep 4s
echo Step 5...
sleep 4s
ifup bond0
echo End
Unfortunately, when I execute it locally, the script freezes somewhere
about step 2 or 3. Which I could perfectly understand - as the system
can't read it.
But I did a "cat script" just before running it - so the system should
have it cached, right?
Sometimes only, the script executes fully.
How can I execute a script from NSF mount - a script which reconfigures
a network interface, and there is a period of network disconnection?
--
Tomasz Chmielewski
http://wpkg.org
-------------------------------------------------------------------------
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
_______________________________________________
NFS maillist - NFS@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/nfs
next reply other threads:[~2007-05-22 10:37 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2007-05-22 10:37 Tomasz Chmielewski [this message]
2007-05-22 12:10 ` how to execute a script from NFS mount (which disconnected)? Trond Myklebust
2007-05-22 12:17 ` Tomasz Chmielewski
2007-05-22 12:25 ` Jeff Layton
2007-05-22 12:29 ` Jeff Layton
2007-05-22 12:41 ` Trond Myklebust
2007-05-22 12:42 ` Neil Brown
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=4652C7ED.9010309@wpkg.org \
--to=mangoo@wpkg.org \
--cc=nfs@lists.sourceforge.net \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.