I have this task : Check the logintime.txt every minute to only allow user to log in at the specified time.
logintime.txt has the following content: USER TIME_START TIME_STOP
Example:
My idea is locking the user at the TIME_STOP and unlocking at the TIME_START
Any better idea to do this? Because my solution don't do the 'check file every minute' thing. And I don't understand why we need to do that thing.
I would like to find out the last time all users have logged in or out. I tried the last command, but it could not find the wtmp file in /var/adm (I searched in othe directories also). This is an AIX rs6000 4.2.1 system. We are moving our applications from this system to an AIX 5.2 system and I... (11 Replies)
I need a command that will list all the users and their last login date & time. I was trying the last command and the who command, but can't get exactly what I need.
I just need the output to be user name and last login date .
Thanks for your help! (3 Replies)
i'm sorry if yesterday i posted this thread in unix for dummies forums, :D
i am a newbie in C programming
i want to get active users list and their login time...
i have search and learn about passwd and utmp, but i only can get user list without their login time...
do you have an idea... (2 Replies)
I want to avoid a situation where because two users simultaneously
open a file and modify and save, leaving the original file in mess.
Is there a way in UNIX to warn a user if that particular file is already being
used by another user.
Thanks in advance (3 Replies)
i need to find out following ways to show out put in a shell script when the user selects that option in a case statement. I have the case statement already started just need to find out how to read the following:
current date and time (should it be read date)?
users logged in (should it be... (4 Replies)
how do i start with this guys?
Sample run:
$ LOGTIME it2015678 <enter>
User it2015678 is CRUZ Tommy H
And has logged on to the system for:
8 hours
12 minutes
from the time this script was run. (1 Reply)
1. The problem statement, all variables and given/known data:
Show all users who are currently logged in, sorted from earliest to latest log in time. The log in time includes the month, day, and time.
2. Relevant commands, code, scripts, algorithms:
finger, who, sort, pipe, head, tail,
... (8 Replies)
Attached is the log file that I have generated through the following script:
last | head -2 |sed '2q;d' |awk '{ print $1"\t"$2"\t"$3"\t\t"$4"\t"$5"\t"$6"\t"$7"\t"$8"\t" $9"\t"$10"\t"$11}'>>/var/log/logadmin/logtest.txt
But now I'm unable to run the following operations on it:
1. Count... (1 Reply)
Discussion started by: Lionking93
1 Replies
LEARN ABOUT DEBIAN
canto-fetch
Canto-fetch(1) Canto-fetch Canto-fetch(1)NAME
Canto-fetch - A quiet feed fetcher.
DESCRIPTION
Canto-fetch is designed to be run through a cron job, every minute. Every time it's run, it checks the timestamp on each index file and
updates the feed, if necessary. The format it produces is a simple UTF-8 encoded, NULL delimited text file on disk, readable by the canto
client.
GETTING STARTED
Canto-fetch is meant to be used through a cron, adding this line to your crontab will cause canto-fetch to poll every minute.
* * * * * canto-fetch
Alternatively, if you're unable/uncomfortable using cron, canto-fetch has a background daemon mode so you can invoke it in your X session
scripts. Just use
canto-fetch -b
USAGE
These options correspond to options to the canto client.
-h / --help
Print usage and quit.
-v / --version
Print version and quit.
-V / --verbose
Output status while updating.
-d / --daemon
Continue to check for updates every minute. Mostly for debugging with -V, users probably want -b to background.
-b / --background
Detach from the terminal (implies -d)
-f / --force
Force updates on all feeds, ignoring timestamps.
-s / --sysfp
Use feedparser on system instead of builtin copy.
-C / --conf [PATH]
Set path to configuration file (default: ~/.canto/conf)
-F / --fdir [PATH]
Set path to feed directory (default: ~/.canto/feeds/)
-L / --log [PATH]
Set path to log (default: ~/.canto/fetchlog)
-S / --sdir [PATH]
Set the path to execurl scripts (default ~/.canto/scripts/)
FILES
~/.canto/fetchlog
Canto-fetch log file.
~/.canto/feeds/
This is the directory where canto-fetch records stories.
BUGS
None known, but it's not outside of the realm of possibility =P.
HOMEPAGE
http://codezen.org/canto
AUTHOR
Jack Miller <jack@codezen.org>
Version 0.7.10 27 July 2010 Canto-fetch(1)