Hi,
I am using AIX 5.2, and I want to copy some files from one server to a remote server using tar command. Can anybody tell me exact command?
Thanks.
Aqeel (2 Replies)
Hello,
I'm sorry if this sounds like a very simple question, but I'm having some difficulty with it being a complete newbie to UNIx. I use Windows, and always have, but need some UNIX access for work, picking up files from our group space, etc.
Basically, I'm using Cygwin and can SSH into the... (3 Replies)
Hi. I'm sorry if I get on people's nerves asking this, but I don't really understand how to do this and unfortunately don't have the time to work through it step by step in books, etc.
At University, we have a unix server that hosts our files. we each have a login and password to access it. I... (3 Replies)
hi,
i want to copy files from a remote computer in a network to a specific directory on my PC. ( script )
Forexample , IP of the remote PC is 172.16.5.24 login:aaaa Passw:123
/folder1/file1.txt to my pc folder /fd/awa.txt
kinldy help
Thanks (2 Replies)
Hi guys Maybe a stupid question.. IS possible, in unix, to copy files to a remote NFS shared filesystem without mounting it? Just like windows does: copy * \\folderA\folderB Thanks.. (4 Replies)
Hi All,
Please help me for a shell. I am a New to unix
I am trying to DB dump file from one server and copying it to another server.
From My Local ServerA connecting to remote ServerB using ssh and taking dump of a instance. That Dump file i need to copy to ServerC.
I am able to connect... (6 Replies)
Hi Team,
I had a requirement to write a shell script which automatically transfer the files from unix server to windows server. I can able to unix to unix using Scp command. I am not sure how to do unix to windows.
I am very new on this concept.
Could you please help me or guide in... (4 Replies)
I have a script, which connecting to remote server and first checks, if the files are there by timestamp. If not I want the script exit without error. Below is a code
TARFILE=${NAME}.tar
TARGZFILE=${NAME}.tar.gz
ssh ${DESTSERVNAME} 'cd /export/home/iciprod/download/let/monthly;... (3 Replies)
Discussion started by: digioleg54
3 Replies
LEARN ABOUT PHP
tempnam
TEMPNAM(3) 1 TEMPNAM(3)tempnam - Create file with unique file nameSYNOPSIS
string tempnam (string $dir, string $prefix)
DESCRIPTION
Creates a file with a unique filename, with access permission set to 0600, in the specified directory. If the directory does not exist or
is not writable, tempnam(3) may generate a file in the system's temporary directory, and return the full path to that file, including its
name.
PARAMETERS
o $dir
- The directory where the temporary filename will be created.
o $prefix
- The prefix of the generated temporary filename.
Note
Windows uses only the first three characters of prefix.
RETURN VALUES
Returns the new temporary filename (with path), or FALSE on failure.
CHANGELOG
+--------+---------------------------------------------------+
|Version | |
| | |
| | Description |
| | |
+--------+---------------------------------------------------+
| 4.0.3 | |
| | |
| | This function's behavior changed in 4.0.3. The |
| | temporary file is also created to avoid a race |
| | condition where the file might appear in the |
| | filesystem between the time the string was gener- |
| | ated and before the script gets around to creat- |
| | ing the file. Note, that you need to remove the |
| | file in case you need it no more, it is not done |
| | automatically. |
| | |
+--------+---------------------------------------------------+
EXAMPLES
Example #1
tempnam(3) example
<?php
$tmpfname = tempnam("/tmp", "FOO");
$handle = fopen($tmpfname, "w");
fwrite($handle, "writing to tempfile");
fclose($handle);
// do here something
unlink($tmpfname);
?>
NOTES
Note
If PHP cannot create a file in the specified $dir parameter, it falls back on the system default. On NTFS this also happens if the
specified $dir contains more than 65534 files.
SEE ALSO tmpfile(3), sys_get_temp_dir(3), unlink(3).
PHP Documentation Group TEMPNAM(3)