aboutsummaryrefslogtreecommitdiffstats
path: root/README.org
blob: afff15f55c1ad7eda071eda9b882fcf432850fc3 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
#+TITLE: bsdsetsid

Simple implementation of util-linux *setsid* for FreeBSD. This was not tested
on other BSD's or macOS but this probably works just fine.

* Dependencies
- A C compiler
- BSD Make

* Installation
You can get *bsdsetsid* either through ~git~ or ~fossil~.

For ~fossil~ use:
#+BEGIN_SRC shell
mkdir bsdsetsid
cd bsdsetsid
fossil clone \
  https://chiselapp.com/user/JozanLeClerc/repository/bsdsetsid \
  bsdsetsid.fossil
fossil open --force bsdsetsid.fossil
#+END_SRC
or for ~git~:
#+BEGIN_SRC shell
git clone git://jozanleclerc.xyz/jozan/bsdsetsid.git
cd bsdsetsid
#+END_SRC
Then build and install the program:
#+BEGIN_SRC shell
make
sudo make install clean
#+END_SRC
Note that if you are one macOS, you need to install and use BSD Make instead
of GNU Make.

* Usage
Example of usage:
#+BEGIN_SRC shell
bsdsetsid st -e sh -c 'cowsay hello; zsh -i'
exit
#+END_SRC
Replace ~st~ and other arguments with any program you'd like to run detached
from the current shell.

For more informations, run:
#+BEGIN_SRC shell
man bsdsetsid
#+END_SRC

Thanks for checking *bsdsetsid*.