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
FTP_SITE(3) 1 FTP_SITE(3)
ftp_site - Sends a SITE command to the server
SYNOPSIS
bool ftp_site (resource $ftp_stream, string $command)
DESCRIPTION
ftp_site(3) sends the given SITE command to the FTP server.
SITE commands are not standardized, and vary from server to server. They are useful for handling such things as file permissions and group
membership.
PARAMETERS
o $ftp_stream
- The link identifier of the FTP connection.
o $command
- The SITE command. Note that this parameter isn't escaped so there may be some issues with filenames containing spaces and other
characters.
RETURN VALUES
Returns TRUE on success or FALSE on failure.
EXAMPLES
Example #1
Sending a SITE command to an ftp server
<?php
// Connect to FTP server
$conn = ftp_connect('ftp.example.com');
if (!$conn) die('Unable to connect to ftp.example.com');
// Login as "user" with password "pass"
if (!ftp_login($conn, 'user', 'pass')) die('Error logging into ftp.example.com');
// Issue: "SITE CHMOD 0600 /home/user/privatefile" command to ftp server
if (ftp_site($conn, 'CHMOD 0600 /home/user/privatefile')) {
echo "Command executed successfully.
";
} else {
die('Command failed.');
}
?>
SEE ALSO
ftp_raw(3).
PHP Documentation Group FTP_SITE(3)