12-02-2011
Hello,
Closing the thread as i am unable to get the proper solution for the time being..
Thanks to all
10 More Discussions You Might Find Interesting
1. Shell Programming and Scripting
Hello Every One.
I am trying to put a timestemp file to a sever with extention file*.ia ( file*.ia is a time stemp and compress file ).
Then rename it into file*.gz.
My .netrc contant are :
machine xxxx login xxxx password xxxx macdef init
lcd /test/system
cd /infolder
ascii... (2 Replies)
Discussion started by: shah2
2 Replies
2. Shell Programming and Scripting
I would like to know if there is a way to get the date and timestamp of the file that is being FTP from the remote server using shell script. Currently the get command from FTP will have current date and timestamp. Tried the earlier suggestion 'HardFeed' but still getting the current date and time... (12 Replies)
Discussion started by: gthokala
12 Replies
3. Shell Programming and Scripting
We have a requirement wherein we have two servers namely A and B.
Now we have to find out all the files in server B from a given location which have a timestamp greater than a file in server A.
Subsequently we need to concatenate the contents of all these files and replace the same with the file... (3 Replies)
Discussion started by: jasonb
3 Replies
4. Linux
Hi,
I want to rename all the files (more than 100 files) in a fodler to another folder with date&time stamp.
foe eg,
file1.dat
file2.dat
file3.dat
..
to be renamed as
file1100629_16_30_15.txt (yy-mon-dd_hh_mi_ss)
file1100629_16_30_16.txt
..
so on (2 Replies)
Discussion started by: feroz
2 Replies
5. Shell Programming and Scripting
Hi!
Please see our current script:
#!/usr/bin/ksh
if (egrep "This string is found in the log" /a01/bpm.log)
then
mailx -s "Error from log" me@email.com, him@email.com </a01/bpm.log
fi
To the above existing script, we need to add the following change:
1) After finding the string,... (7 Replies)
Discussion started by: atechcorp
7 Replies
6. Shell Programming and Scripting
Hi Guys,
Server time:-
>date
>Wed Nov 14 11:56:23 EST 2012
I want to convert in to Below Formet :-
20121114.1100
And cretae file base on above data : last 48 Hour
20121114.1000 20121114.1100
20121114.0900 20121114.1000
20121114.0800 20121114.0900
20121114.0700 20121114.0800... (2 Replies)
Discussion started by: asavaliya
2 Replies
7. Solaris
Hi all,
I have written the following program and run on both T5440 and T5220 on same OS version. I found that T5540 server takes more time than T5220. Please find below the details.
test1.cpp
#include <iostream>
#include <pthread.h>
using namespace std;
#define NUM_OF_THREADS 20... (17 Replies)
Discussion started by: sanjay_singh85
17 Replies
8. UNIX for Dummies Questions & Answers
I have 3 servers A, B, C and server B is having some files in /u01/soa/ directory, these files i want to copy to server C, and i want to run the script from server A.
Script(Server A) --> Files at Server B (Source server) --> Copy the files to Server C(Target Server).
We dont have RSA key... (4 Replies)
Discussion started by: kiran_j
4 Replies
9. Shell Programming and Scripting
Experts,
Please help me out here.
How to preserve time stamp while copying a directory from Server B to Server A (3 Replies)
Discussion started by: ahmed.vaghar
3 Replies
10. Shell Programming and Scripting
It takes 6 hrs for a 90 GB zip file that i am copying / transferring from serverA onto serverB.
scp user1@serverA:/opt/setup/cash.zip .
Output:
cash.zip 21% 19GB 4.7MB/s 4:11:46 ETA
uname -a
SunOS serverB 5.11 11.2 sun4v sparc sun4vCan you please suggest if i could do... (11 Replies)
Discussion started by: mohtashims
11 Replies
LEARN ABOUT OSF1
tis_setcancelstate
tis_setcancelstate(3) Library Functions Manual tis_setcancelstate(3)
NAME
tis_setcancelstate - Changes the calling thread's cancelability state.
LIBRARY
Standard C Library (libc.so, libc.a)
SYNOPSIS
#include <tis.h>
int tis_setcancelstate(
int state,
int *oldstate);
STANDARDS
None
PARAMETERS
State of general cancelability to set for the calling thread. Valid state values are as follows: PTHREAD_CANCEL_ENABLE PTHREAD_CANCEL_DIS-
ABLE Receives the value of the calling thread's previous cancelability state.
DESCRIPTION
This routine sets the calling thread's cancelability state to the value specified in the state argument and returns the calling thread's
previous cancelability state in the location referenced by the oldstate argument.
When a thread's cancelability state is set to PTHREAD_CANCEL_DISABLE, a cancelation request cannot be delivered to the thread, even if a
cancelable routine is called or asynchronous cancelability is enabled.
When a thread is created, its default cancelability state is PTHREAD_CANCEL_ENABLE. When this routine is called prior to loading threads,
the cancelability state propagates to the initial thread in the executing program.
Possible Problems When Disabling Cancelability
The most important use of a cancelation request is to ensure that indefinite wait operations are terminated. For example, a thread waiting
on some network connection, which might take days to respond (or might never respond), should be made cancelable.
When a thread's cancelability state is disabled, no routine called within that thread is cancelable. As a result, the user is unable to
cancel the operation. When disabling cancelability, be sure that no long waits can occur or that it is necessary for other reasons to
defer cancelation requests around that particular region of code.
RETURN VALUES
On successful completion, this routine returns the calling thread's previous cancelability state in the oldstate argument.
If an error condition occurs, this routine returns an integer value indicating the type of error. Possible return values are as follows:
Successful completion. The specified state is not PTHREAD_CANCEL_ENABLE or PTHREAD_CANCEL_DISABLE.
ERRORS
None
RELATED INFORMATION
Functions: tis_testcancel(3)
Manuals: Guide to DECthreads and Programmer's Guide
delim off
tis_setcancelstate(3)