Re: Running a command in background inside spec file

2009-08-08 Thread Mike A. Harris
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

Murilo Opsfelder Araujo wrote:
 Hi,
 
 how can I run a command in background inside spec file?

Assuming you are in one of the scripted sections such as %build,
%install, etc. or an rpm pre/post type scriptlet, you'd do it the same
way you would do it in a regular shell script.

I can't help but wonder what a good valid usage case of this is however,
and would generally discourage any attempt to do that.




- --
Mike A. Harris
http://mharris.ca  |  https://twitter.com/mikeaharris

-BEGIN PGP SIGNATURE-
Version: GnuPG v1.4.5 (GNU/Linux)

iD8DBQFKfe7J4RNf2rTIeUARApm9AJ4xu5BGDPOWLdwua2VjGC8yD7av3QCgpbzb
3yJi07h3XIhSCUoh2RuxvGo=
=Sn5d
-END PGP SIGNATURE-

-- 
fedora-devel-list mailing list
fedora-devel-list@redhat.com
https://www.redhat.com/mailman/listinfo/fedora-devel-list


Re: Running a command in background inside spec file

2009-08-08 Thread R P Herrold

On Sat, 8 Aug 2009, Mike A. Harris wrote:


OP:
how can I run a command in background inside spec file?


I can't help but wonder what a good valid usage case of this 
is however


firing up a newly compiled local database server, for testing 
a newly compiled client comes to mind


-- Russ herrold

--
fedora-devel-list mailing list
fedora-devel-list@redhat.com
https://www.redhat.com/mailman/listinfo/fedora-devel-list


Re: Running a command in background inside spec file

2009-08-07 Thread Murilo Opsfelder Araujo
I was able to do that using triggerin -- packagename.

Thanks for helping.

On Fri, Aug 7, 2009 at 7:56 AM, yersiniayersinia.spi...@gmail.com wrote:
 On Thu, Aug 6, 2009 at 11:07 PM, Adam Millermaxamill...@gmail.com wrote:
 On Thu, Aug 6, 2009 at 3:56 PM, Murilo Opsfelder
 Araujomopsfel...@gmail.com wrote:
 snip
 how can I run a command in background inside spec file?

 snip

 I have to ask because my curiosity is killing me what's the use
 case for that?
 Un use case could be in the %post section, if you want to run a
 postinstall of a (bad) commercial package and you want to put in a
 shell a sigalarm (something like this) for not to wait forever if
 something go wrong. I have done this in the past IIRC. But it is only
 an example, for probably a rare use case.

 Cheers

 -Adam


 --
 http://maxamillion.googlepages.com
 -
 ()  ascii ribbon campaign - against html e-mail
 /\  www.asciiribbon.org   - against proprietary attachments

 --
 fedora-devel-list mailing list
 fedora-devel-list@redhat.com
 https://www.redhat.com/mailman/listinfo/fedora-devel-list


 --
 fedora-devel-list mailing list
 fedora-devel-list@redhat.com
 https://www.redhat.com/mailman/listinfo/fedora-devel-list




-- 
Murilo Opsfelder Araujo

-- 
fedora-devel-list mailing list
fedora-devel-list@redhat.com
https://www.redhat.com/mailman/listinfo/fedora-devel-list


Running a command in background inside spec file

2009-08-06 Thread Murilo Opsfelder Araujo
Hi,

how can I run a command in background inside spec file?

Thanks.

-- 
Murilo Opsfelder Araujo

-- 
fedora-devel-list mailing list
fedora-devel-list@redhat.com
https://www.redhat.com/mailman/listinfo/fedora-devel-list


Re: Running a command in background inside spec file

2009-08-06 Thread Eric Sandeen
Murilo Opsfelder Araujo wrote:
 Hi,
 
 how can I run a command in background inside spec file?
 
 Thanks.
 

ooh boy, I think the answer is, you don't - why do you need to?

-Eric

-- 
fedora-devel-list mailing list
fedora-devel-list@redhat.com
https://www.redhat.com/mailman/listinfo/fedora-devel-list


Re: Running a command in background inside spec file

2009-08-06 Thread Adam Miller
On Thu, Aug 6, 2009 at 3:56 PM, Murilo Opsfelder
Araujomopsfel...@gmail.com wrote:
snip
 how can I run a command in background inside spec file?

snip

I have to ask because my curiosity is killing me what's the use
case for that?

-Adam


-- 
http://maxamillion.googlepages.com
-
()  ascii ribbon campaign - against html e-mail
/\  www.asciiribbon.org   - against proprietary attachments

-- 
fedora-devel-list mailing list
fedora-devel-list@redhat.com
https://www.redhat.com/mailman/listinfo/fedora-devel-list