Hi,
Is there any utility to compress an entire directory on a Sun Solaris 5.7 ? Something like "compressdir" on other flavours of Unix ?
Thanks (4 Replies)
Hi ,
I am relatively new to unix...
Can u pls help me out to find out if the first day of the month is a working day ie from (Monday to Friday)...using Date and If clause in Korn shell..
This is very urgent.
Thanks for ur help... (7 Replies)
Hi Friends,
I have a directory under which 10 more directories are there.
In each 10 directories there are several files.
I want to do FTP. But in FTP we cannt Transfer the main directory.
each Time we have to go to the respective directry and then we have to to FTP.
For this instance I... (9 Replies)
Hi all
I need to write a script that archives all files with a certain date in the filename, to another location.
It has to run on a AIX using tar/compress or another standard AIX tool.
The directory will have x files, each prefixed with a date like yyyymmdd_desc.csv.
I need all to... (7 Replies)
Hi All,
I'm a new member of this Forum. I have need your help to handle this request.
"Compress a file name not of today but of yesterday only".
For example
0 mar 08:00 TEST_RPT_STATUS_M1I_CMI20120320.xls
20 mar 08:00 TEST_RPT_STATUS_M1I_CMI20120320.rep
21 mar 08:00... (6 Replies)
Hi All,
I have a requirement where I need to first capture the current day & move all the files from a particular directory based on a previous day.
i.e move all the files from one directory to another based on current day & a previous day. Here is what I am trying, but it gives me errors.... (2 Replies)
Hello!
Please I need some help on writing a script to push files from one server to the other once a day, everyday. I know that I can use this script on a crontab to send the files , but I am not sure how to start writing it, the actual script.
I could start by declaring some variables:
... (4 Replies)
the problem states "Write a script that compresses all the files in the directory. Make a directory and put some files in it. Also make a sub directory in your directory and put files in it also. Once you have this basic ability to compress all files within a directory, add to your script a menu of... (1 Reply)
Hi dears,
Hi All,
I'm a new member of this Forum. I have need your help to handle this request.
"I want to copy and Compress files not of today but of yesterday only using some script".
For example
I have the following files under a particular directory in a Solaris machine.
... (7 Replies)
Discussion started by: JackyJohn
7 Replies
LEARN ABOUT CENTOS
__pmparsectime
PMPARSECTIME(3) Library Functions Manual PMPARSECTIME(3)NAME
__pmParseCtime - convert ctime(3) string to tm structure
C SYNOPSIS
#include <pcp/pmapi.h>
#include <pcp/impl.h>
int __pmParseCtime(const char *string, struct tm *rslt, char **errmsg);
cc ... -lpcp
DESCRIPTION
__pmParseCtime reverses the asctime(3C) function. It accepts a string specifying a time, and fills in the given tm structure.
Either a fully specified asctime(3C) string like "Mon Mar 4 13:07:47 1996" or a partially specified time like '1996", "Mar 1996", "Mar 4
1996", "Mar", "13:07:47", "13:07", "Mar 4 13:07:47",... is accepted. In addition, the seconds component may be a floating point number,
for example "13:07:47.5". The 12 hour clock is also supported, so "13:07" and "1:07 pm" are equivalent.
__pmParseCtime returns 0 if successful. It returns -1 and a dynamically allocated error message string in errmsg, if the given string does
not parse. Be sure to free(3C) the error message string.
The tm structure returned in rslt should only be used as an argument to the __pmConvertTime function, as it contains encoded information
that will only be correctly interpreted by __pmConvertTime.
SEE ALSO PMAPI(3), pmParseInterval(3), __pmConvertTime(3) and __pmParseTime(3).
Performance Co-Pilot PCP PMPARSECTIME(3)