File: argv0.1

package info (click to toggle)
ucspi-tcp-src 0.88-15
  • links: PTS
  • area: non-free
  • in suites: lenny, squeeze
  • size: 1,380 kB
  • ctags: 761
  • sloc: ansic: 6,758; makefile: 854; sh: 312
file content (47 lines) | stat: -rw-r--r-- 596 bytes parent folder | download | duplicates (3)
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
.TH argv0 1
.SH NAME
argv0 \- run a program with a specified 0th argument
.SH SYNOPSIS
.B argv0
.I realname
.I zero
[
.I arg ...
]
.SH DESCRIPTION
.B argv0
runs
the program stored as
.I realname
on disk,
with the given
arguments.
It sets the 0th argument of
the program to
.IR zero .

For example,

.EX
     argv0 /bin/csh -bin/csh
.EE

runs
.B /bin/csh
with a 0th argument of
.BR -bin/csh .
.B csh
will think it is a login shell
and behave accordingly.

.B argv0
can be used to run some
.B inetd
wrappers under
.BR tcpserver .
.SH "SEE ALSO"
csh(1),
tcpserver(1),
execve(2),
execvp(3),
inetd(8)