08-19-2001
Re-initializing startup files without rebooting
Sorry for the newbie question. I'm using OSX BSD by remotely logging in and need to re-initialize the startup sequence but don't want to reboot the machine. How can I do it?
Thanks for any help.
9 More Discussions You Might Find Interesting
1. UNIX for Dummies Questions & Answers
log files for startup for AIX is /etc/rc.log.old
how about for hpux and solaris? (1 Reply)
Discussion started by: yls177
1 Replies
2. AIX
Hi Every Body, I want to know which files are read by the system during startup (initialization files) & in which order they are read? (2 Replies)
Discussion started by: aldowsary
2 Replies
3. SuSE
Hi Everybody
I am totally new to Linux.
We are using Suse Linux version 9.
Currently we have 4 to 5 shell scripts which needs to be executed manually by the users.I want these scripts to be run automatically when system starts...something like system startup service.
When system is... (1 Reply)
Discussion started by: appleforme1415
1 Replies
4. UNIX for Dummies Questions & Answers
hello,
i want to know how to initialize a file to an empty one in korn shell scripting? i'm using a file name and building it during a while loop using >>. The problem occurs when the file is not empty before reaching the while loop. therefore, i want to initialize it before the loop to get... (6 Replies)
Discussion started by: alrinno
6 Replies
5. Shell Programming and Scripting
hi everyone...
we have to run any python file e.g. show.py at startup..i.e. when OS starts it runs automatically.
we are proceeding this way,
writing a startup script named forfyp2 ,pasting it in init.d , making it exe using chmod , creating startup links using update-rc.d forfyp2 defaults.... (1 Reply)
Discussion started by: sarosh
1 Replies
6. UNIX for Dummies Questions & Answers
I was going through a server hardening manual.
At some interval it was mentioned that there should not be any alias for commands defined in roots startup files .
How would i check it? (3 Replies)
Discussion started by: pinga123
3 Replies
7. UNIX for Dummies Questions & Answers
Hi All,
Can some one pls explain the order in which the startup files are run?
For Bourne shell .profile is run., But what other startup files are present?
When is the .aliases file called. (4 Replies)
Discussion started by: gsrikanth99
4 Replies
8. Shell Programming and Scripting
Hi, I am running a script which produces a number of intermediate output files for each time step. is there a way to remove these intermediate files and just retain the final output at every end of the loop, like sort of an initialization process? this the inefficient way i do it.
for i in... (3 Replies)
Discussion started by: ida1215
3 Replies
9. Shell Programming and Scripting
I copied the script from an AskUbuntu post -
#!/bin/bash
### BEGIN INIT INFO
# Provides: tomcat7
# Required-Start: $network
# Required-Stop: $network
# Default-Start: 2 3 4 5
# Default-Stop: 0 1 6
# Short-Description: Start/Stop Tomcat server
### END INIT INFO
... (14 Replies)
Discussion started by: Hijanoqu
14 Replies
UTMPX(5) BSD File Formats Manual UTMPX(5)
NAME
utmpx, wtmpx, lastlogx -- user accounting database
SYNOPSIS
#include <utmpx.h>
DESCRIPTION
In contrast to utmp and wtmp, the extended databases in utmpx and wtmpx reserve more space for logging hostnames, and also information on a
process' ID, termination signal and exit status.
The <utmpx.h> header defines the structures and functions for logging user. Currently logged in users are tracked in /var/run/utmpx, a list
of all logins and logouts, as well as all shutdowns, reboots and date changes, is kept in /var/log/wtmpx, and the last login of each user is
noted in /var/log/lastlogx.
The interface to the utmpx file is described in getutxent(3).
The wtmpx file can grow rapidly on busy systems, and is normally rotated with newsyslog(8).
In the event of a date change, a shutdown, or a reboot, the following items are logged in the wtmpx file:
date The system time has been manually or automatically updated by date(1). The command name date is recorded in the field
ut_name. In the field ut_line, the character '|' indicates the time prior to the change, and the character '{' indicates
the new time.
reboot
shutdown A system reboot or shutdown has been initiated. The character '~' is placed in the field ut_line, and reboot or shutdown
in the field ut_name (see shutdown(8) and reboot(8)), using logwtmpx(3).
FILES
/var/run/utmpx The utmpx file.
/var/log/wtmpx The wtmpx file.
/var/log/lastlogx The lastlogx file.
SEE ALSO
last(1), login(1), rwho(1), w(1), who(1), endutxent(3), logwtmpx(3), utmp(5), ac(8), init(8), newsyslog(8), reboot(8)
BSD
January 31, 2007 BSD