* Re: bash script not CORRECTLY working from /etc/dev.d/foo/foo.dev
@ 2005-02-26 10:54 BlinkEye
2005-02-26 11:28 ` Tobias Klauser
2005-02-26 14:21 ` BlinkEye
0 siblings, 2 replies; 3+ messages in thread
From: BlinkEye @ 2005-02-26 10:54 UTC (permalink / raw)
To: linux-hotplug
[-- Attachment #1: Type: text/plain, Size: 1871 bytes --]
i do read the man page. i still believe this is a bug. the script IS
executed, but not the hole part. (i easily verified that with playing
sounds in different parts of the script). i tried putting it in
/etc/dev.d/default - still the same behaviour. it works comletely if i
execute it manually. besides - i removed the ACTION commands - so it's
not that either.
any suggestions?
thanks for any help
regards
blinkeye
On Sat, 2005-02-26 at 01:30, Kay Sievers wrote:
> On Fri, 2005-02-25 at 22:51 +0100, BlinkEye wrote:
> >hello,
> >
> >i think i found a bug. i've written a bash script which should be
> >executed upton plugin in my digital camera on a usb port. the thing is
> >that it simply DOESN'T work CORRECTLY if it is automatically executed
> >from /etc/dev.d/foo/foo.dev upon plugin in my device. it WORKS if i
> >execute the script directly. the strange thing is that it IS being
> >executed, but not the hole script.
> >first i thought i couldn't use functions in /etc/dev.d/foo but it didn't
> >change a thing.
> >is there a limit of instructions? i tried to just add a line which
> >executes the script on another location, still no go.
> >
> >ANY ideas?
>
> Yeah, read the udev man page. :)
> And place your script in /etc/dev.d/default/
>
> Kay
>
>
>
> -------------------------------------------------------
> SF email is sponsored by - The IT Product Guide
> Read honest & candid reviews on hundreds of IT Products from real users.
> Discover which products truly live up to the hype. Start reading now.
> http://ads.osdn.com/?ad_id=6595&alloc_id=14396&op=click
> _______________________________________________
> Linux-hotplug-devel mailing list http://linux-hotplug.sourceforge.net
> Linux-hotplug-devel@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/linux-hotplug-devel
>
[-- Attachment #2: This is a digitally signed message part --]
[-- Type: application/pgp-signature, Size: 189 bytes --]
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: bash script not CORRECTLY working from /etc/dev.d/foo/foo.dev
2005-02-26 10:54 bash script not CORRECTLY working from /etc/dev.d/foo/foo.dev BlinkEye
@ 2005-02-26 11:28 ` Tobias Klauser
2005-02-26 14:21 ` BlinkEye
1 sibling, 0 replies; 3+ messages in thread
From: Tobias Klauser @ 2005-02-26 11:28 UTC (permalink / raw)
To: linux-hotplug
A: Because it messes up the order in which people normally read text.
Q: Why is top-posting such a bad thing?
A: Top-posting.
Q: What is the most annoying thing on usenet and in e-mail?
A: No.
Q: Should I include quotations after my reply?
(Sorry fo stealing this, Greg)
On Sat, Feb 26, 2005 at 11:54:40AM +0100, BlinkEye wrote:
> i do read the man page. i still believe this is a bug. the script IS
> executed, but not the hole part. (i easily verified that with playing
> sounds in different parts of the script). i tried putting it in
> /etc/dev.d/default - still the same behaviour. it works comletely if i
> execute it manually. besides - i removed the ACTION commands - so it's
> not that either.
It may be an error in your script which is causing the misbehaviour.
Perhaps you could post it here to clarify this.
Cheers, Tobias
-------------------------------------------------------
SF email is sponsored by - The IT Product Guide
Read honest & candid reviews on hundreds of IT Products from real users.
Discover which products truly live up to the hype. Start reading now.
http://ads.osdn.com/?ad_ide95&alloc_id\x14396&op=click
_______________________________________________
Linux-hotplug-devel mailing list http://linux-hotplug.sourceforge.net
Linux-hotplug-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/linux-hotplug-devel
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: bash script not CORRECTLY working from /etc/dev.d/foo/foo.dev
2005-02-26 10:54 bash script not CORRECTLY working from /etc/dev.d/foo/foo.dev BlinkEye
2005-02-26 11:28 ` Tobias Klauser
@ 2005-02-26 14:21 ` BlinkEye
1 sibling, 0 replies; 3+ messages in thread
From: BlinkEye @ 2005-02-26 14:21 UTC (permalink / raw)
To: linux-hotplug
[-- Attachment #1: Type: text/plain, Size: 1344 bytes --]
On Sat, 2005-02-26 at 12:28, Tobias Klauser wrote:
> A: Because it messes up the order in which people normally read text.
> Q: Why is top-posting such a bad thing?
> A: Top-posting.
> Q: What is the most annoying thing on usenet and in e-mail?
> A: No.
> Q: Should I include quotations after my reply?
>
> (Sorry fo stealing this, Greg)
>
> On Sat, Feb 26, 2005 at 11:54:40AM +0100, BlinkEye wrote:
> > i do read the man page. i still believe this is a bug. the script IS
> > executed, but not the hole part. (i easily verified that with playing
> > sounds in different parts of the script). i tried putting it in
> > /etc/dev.d/default - still the same behaviour. it works comletely if i
> > execute it manually. besides - i removed the ACTION commands - so it's
> > not that either.
>
> It may be an error in your script which is causing the misbehaviour.
> Perhaps you could post it here to clarify this.
>
> Cheers, Tobias
I found the bug: sudo. i used 'sudo -u username mkdir foo' within my
script to make a directory (which should be owned by the user). this
works if i execute the script by hand but it doesn't work if it gets
invoked by udev automatically. well, strange behaviour and difficult to
find.
lession learned: use chown/chmod over sudo.
thanks for the help anyway.
regards
blinkeye
[-- Attachment #2: This is a digitally signed message part --]
[-- Type: application/pgp-signature, Size: 189 bytes --]
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2005-02-26 14:21 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2005-02-26 10:54 bash script not CORRECTLY working from /etc/dev.d/foo/foo.dev BlinkEye
2005-02-26 11:28 ` Tobias Klauser
2005-02-26 14:21 ` BlinkEye
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).