table of contents
other sections
conflicting packages
argv0(1) | General Commands Manual | argv0(1) |
NAME¶
argv0 - runs a program with a specified 0th argument.SYNOPSIS¶
argv0 realname zero argsDESCRIPTION¶
realname is one argument. zero is one argument. args is any number of arguments. argv0 runs the program stored as realname on disk, with zero as the 0th argument (rather than realname) and args as the remaining arguments.APPLICATIONS¶
Some programs pay special attention to the 0th argument. argv0 makes these programs usable from shell scripts. For example,- argv0 /bin/csh -csh
- tcpserver 0 ftp argv0 tcpd ftpd -l -A
- ftp stream tcp nowait root tcpd ftpd -l -A
- tcpserver -x ftp.tcp 0 ftp ftpd -l -A