View previous topic :: View next topic |
Author |
Message |
El_Goretto Moderator
![Moderator Moderator](/images/ranks/rank-mod.gif)
![](images/avatars/74235356747da926429d8b.jpg)
Joined: 29 May 2004 Posts: 3174 Location: Paris
|
Posted: Thu Mar 08, 2007 7:00 pm Post subject: [bash] Instruction exécutée même au ctrl-C (résolu) |
|
|
Bonsoir,
C'est moche de vieillir, oui je sais, mais je n'arrive plus à me rappeler si je l'ai lu et où, ou bien si je l'ai rêvé... ^^
Bref, il s'agit de permettre l'exécution d'instructions dans un shell script, lorsque celui-ci s'arrête, y copris par un violent ctrl-C.
Euh, d'après vous je ferais mieux de reprendre mes gouttes, ou bien ça axiste pour de vrai? ![Smile :)](images/smiles/icon_smile.gif) _________________ -TrueNAS & jails: µ-serv Gen8 E3-1260L, 16Go ECC + µ-serv N40L, 10Go ECC
-Réseau: APU2C4 (OpenWRT) + GS726Tv3 + 2x GS108Tv2 + Archer C5v1 (OpenWRT)
Last edited by El_Goretto on Thu Mar 08, 2007 7:39 pm; edited 1 time in total |
|
Back to top |
|
![](templates/gentoo/images/spacer.gif) |
widan Veteran
![Veteran Veteran](/images/ranks/rank_rect_5_vet.gif)
![](images/avatars/142533236243680bda6f27b.jpg)
Joined: 07 Jun 2005 Posts: 1512 Location: Paris, France
|
Posted: Thu Mar 08, 2007 7:15 pm Post subject: |
|
|
On peut intercepter le Ctrl-C avec "trap". Regarde cette page. |
|
Back to top |
|
![](templates/gentoo/images/spacer.gif) |
El_Goretto Moderator
![Moderator Moderator](/images/ranks/rank-mod.gif)
![](images/avatars/74235356747da926429d8b.jpg)
Joined: 29 May 2004 Posts: 3174 Location: Paris
|
Posted: Thu Mar 08, 2007 7:38 pm Post subject: |
|
|
C'était çà, merci, je dormirai bien cette nuit, aaaaahh ![Very Happy :D](images/smiles/icon_biggrin.gif) _________________ -TrueNAS & jails: µ-serv Gen8 E3-1260L, 16Go ECC + µ-serv N40L, 10Go ECC
-Réseau: APU2C4 (OpenWRT) + GS726Tv3 + 2x GS108Tv2 + Archer C5v1 (OpenWRT) |
|
Back to top |
|
![](templates/gentoo/images/spacer.gif) |
|
|
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum
|
|