User Tools

Site Tools


bloglike:2014-11

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
bloglike:2014-11 [2014/11/18 02:22] – s/take/get/ styblabloglike:2014-11 [2014/11/18 02:34] (current) – [Writing shell in a portable way is ...] throw in some links with explanation stybla
Line 21: Line 21:
  
 Where is the problem at? It's in ''trap'' and the fact you can't use ''SIGHUP'', ''SIGINT'', ''SIGTERM'' and alike, but you have to use signal numbers. And to use ''#!/bin/bash'' as a solution? Please! Where is the problem at? It's in ''trap'' and the fact you can't use ''SIGHUP'', ''SIGINT'', ''SIGTERM'' and alike, but you have to use signal numbers. And to use ''#!/bin/bash'' as a solution? Please!
 +
 +**UPDATE**: Actually, you can use ''HUP'', ''INT'' and ''TERM'' according to [[https://wiki.icflix.com/|this wiki page]]. Also, reading POSIX web page about [[http://pubs.opengroup.org/onlinepubs/009695399/utilities/trap.html|trap]] is helpful ;-)
  
 And don't get me wrong. I'm more or less making fun out of it. I didn't know or forgotten all about it. May be somebody will find this useful. And don't get me wrong. I'm more or less making fun out of it. I didn't know or forgotten all about it. May be somebody will find this useful.
bloglike/2014-11.1416298948.txt.gz · Last modified: 2014/11/18 02:22 by stybla