AUTO_EXEC
Package: WA2L/WinTools 1.2.08
Section: Maintenance Commands (1m)
Updated: 14 January 2024
Index
Return to Main Contents
NAME
AUTO_EXEC - execute AUTOEXEC commands on login
SYNOPSIS
WA2LWinTools/lib/shell/AUTO_EXEC
[
-h
|
-i
|
-j
|
-s
|
-u
|
-V
|
-l
|
-p
]
AUTO_EXEC
AUTO_EXEC
[
-n COMPUTERNAME
]
AVAILABILITY
WA2L/WinTools
DESCRIPTION
The
AUTO_EXEC
command allows to execute commands automatically on login.
The commands to be executed are defined in the
etc/AUTO_EXEC.ini
file which is a
gawk(3)
file.
AUTO_EXEC
provides a number of predefined service handlers to start
commands.
The provided service handlers can be printed using the
-p
option.
The commands to be executed on a certain system (e.g.
ACME007)
need to be defined in
AUTO_EXEC.ini
in:
function ACME007(){
:
:
} # ACME007
If no such function is defined, the commands for the
USERDOMAIN (e.g.
ACMECORP)
are executed:
function ACMECORP(){
:
:
} # ACMECORP
If no function for a USERDOMAIN is defined, the commands
defined in the
DEFAULT
function are executed:
function DEFAULT(){
:
:
} # DEFAULT
OPTIONS
- -h
-
usage message.
- -i
-
install the
AUTO_EXEC
command as
'AUTO EXEC'
to
'Startup'
in the Windows™
'Start Menu'
minimized.
- -j
-
install the
AUTO_EXEC
command as
'AUTO EXEC'
to
'Startup'
in the Windows™
'Start Menu'
visible.
- -s
-
print the
AUTO_EXEC
installation status.
- -u
-
uninstall the
AUTO_EXEC
command from
'Startup'
in the Windows™ Start Menu.
- -V
-
print program version.
- -p
-
print all available
AUTO_EXEC
service handler and low level functions to be used in
AUTO_EXEC.ini.
- -n COMPUTERNAME
-
execute commands defined for
COMPUTERNAME.
ENVIRONMENT
-
EXIT STATUS
- 0
-
no error.
- 1
-
no matching AUTOEXEC
definition found in
AUTO_EXEC.ini.
- 4
-
usage displayed.
- 5
-
version message displayed.
FILES
- etc/AUTO_EXEC.ini
-
configuration file for
AUTO_EXEC.
- lib/AUTO_EXEC.lib
-
library of service handler functions.
If you miss a service handler add it to the
AUTO_EXEC.ini
file not the
AUTO_EXEC.lib
file due to the fact that the
AUTO_EXEC.lib
will be overwritten on updates of the package.
EXAMPLES
-
SEE ALSO
wintoolsintro(1),
auto_exec.ini(4),
gawk(3)
NOTES
-
BUGS
-
AUTHOR
AUTO_EXEC was developed by Christian Walther. Send suggestions
and bug reports to wa2l@users.sourceforge.net .
COPYRIGHT
Copyright © 2024
Christian Walther
This is free software; see
WA2LWinTools/man/COPYING
for copying conditions. There is ABSOLUTELY NO WARRANTY; not
even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
This document was created by man2html
using the manual pages.
Time: 16:31:42 GMT, September 14, 2024