5 More Discussions You Might Find Interesting
1. AIX
Dears,
My boss asked me to record the login information on AIX server, so I used "last" command to get i want. But it is so strange when i get a record the login date is Jan,01 1970 (as attached picture). does anyone know what happen?
Thanks and Regards, (6 Replies)
Discussion started by: Zack.Chiang
6 Replies
2. Shell Programming and Scripting
I have the following perl one-liner to get yesterday's date, but I would like it in the form of dd-MMM-yy (for example: 01-JAN-12). Can someone alter the below code so I get the format I want? Also, could someone also give me a line for dd-Mmm-yy (for example 01-Jan-12)?
Code:
YEST=`perl -w... (3 Replies)
Discussion started by: thibodc
3 Replies
3. Shell Programming and Scripting
I need to be able to compare dates in the format of Jan 10, 2012 and Jan 10 2012. (Notice one has a comma).
Then I need to find the date that is 7 days before those dates if they are equal.
How can I do this in Bash.
Thank ahead (4 Replies)
Discussion started by: ojthejuice
4 Replies
4. Shell Programming and Scripting
Does anyone know how to calculate a calendar date since Jan 1, 2000 (this is day 1). I am using CSH with a Solaris system (no GNU products installed).
Example:
Input from the user (number of days):
4444
Output (dd mmm yy)
02 mar 12
---------- Post updated at 09:40 PM ----------... (9 Replies)
Discussion started by: thibodc
9 Replies
5. Shell Programming and Scripting
Hi
I am new to unix.
I have to set up a cron for the program , which should run every Monday at 3 a.m, however , if the date is between the 5 th and the 15th of January,APril or December, the program should not run
I know i cant do this in cron , Help with writing the if contion is... (1 Reply)
Discussion started by: saiviren
1 Replies
LEARN ABOUT DEBIAN
al_findfirst
al_findfirst(3alleg4) Allegro manual al_findfirst(3alleg4)
NAME
al_findfirst - Low-level function for searching files. Allegro game programming library.
SYNOPSIS
#include <allegro.h>
int al_findfirst(const char *pattern, struct al_ffblk *info, int attrib);
DESCRIPTION
Low-level function for searching files. This function finds the first file which matches the given wildcard specification and file
attributes (see above). The information about the file (if any) will be put in the al_ffblk structure which you have to provide. The
al_ffblk structure looks like:
struct al_ffblk
{
int attrib; - actual attributes of the file found
time_t time; - modification time of file
char name[512]; - name of file
};
There is some other stuff in the structure as well, but it is there for internal use only. Example:
struct al_ffblk info;
if (al_findfirst("*.pcx", &info, FA_ALL) != 0) {
/* Tell user there are no PCX files. */
return;
}
RETURN VALUE
The function returns non-zero if no match is found or if an error occurred and, in the latter case, sets `errno' accordingly. It returns
zero if a match is found, allocating some memory for internal use in the structure. Therefore you have to close your search when you are
finished to avoid memory leaks in your program.
SEE ALSO
al_findnext(3alleg4), al_findclose(3alleg4), al_ffblk_get_size(3alleg4)
Allegro version 4.4.2 al_findfirst(3alleg4)