hi, which Command is used for copy a file from one server to another server, please provide the syntax and give one small example...
Thanks in advance
sarwan (2 Replies)
Hi All,
what is the comand to log off the remote server?
I have 2 servers A, B. I need to find all files older than 7 days on server B and copy over to server A. My logic is:
login the remote server:
=================
ssh hostB
cd /data/test
find . -mtime -7 -ls | awk '{print... (4 Replies)
can some one help me to write a shell script that copy one file from one server to multiple server
ex:suppose i wnt to copy file abc.txt which is in server 1
to server2,server3,server4....:confused: (6 Replies)
Hi ,
I have two servers say server A and server B. I am generating some files in server A which I have to copy to Server B,what will be the best option and why it is better than the other( as I have to copy more than 3 GB data files daily)
1.FTP - I can't use FTP bcoz it's not allowed due to... (2 Replies)
Hi all,
So I am on server 1, and I want to grab the newest file from a particular directory on server 2, and place this in a directory on server 1.
I am trying to use: ls -tr | tail -1
This works, and gets me the newest file in a particular directory. Using svn `ls -tr | tail -1` etc I... (1 Reply)
We would be migrating unix solaries to Linux redhat.
Basically source is unix and target is linux.
i would like to copy entire file system unix/source/* to target linux/souce/*
but target linux has only folder setup so what ever files copied need to be placed in the linux server with same... (8 Replies)
How to copy a binary from one server and paste it to another server?
Please help...
On server A there is a binary with size 0...I need to copy a binary from server B and replace the 0 size binary on Server A.
Kindly Help (3 Replies)
Hi All,
I am generating report in a Linux server and once the report is generated the report(.txt file) needs to be automatically saved in a Windows servers.
So i am looking for a script to transfer the file automatically from Linux server to Windows server?
Please advise.
Thanks... (3 Replies)
Hi ,
Is there any script to copy a files (weblogic bianary + silent.xml ) from one server (linux) to another servers and then execute the copy file.
We want to copy a file on multiple servers and run the installation.
Thanks (1 Reply)
:wall:Hi all,
I have two servers : server A and server B
Weekly wise i use to receive files to server A to one particular location say /source/location . NOTE: In this location there will be other files also present other than these weekly arrival 18 files.
My task :
i need a... (7 Replies)
Discussion started by: karmegam
7 Replies
LEARN ABOUT MOJAVE
getfsent
GETFSENT(3) BSD Library Functions Manual GETFSENT(3)NAME
getfsent, getfsspec, getfsfile, setfsent, endfsent -- get file system descriptor file entry
LIBRARY
Standard system libraries.
SYNOPSIS
#include <fstab.h>
struct fstab *
getfsent(void);
struct fstab *
getfsspec(const char *spec);
struct fstab *
getfsfile(const char *file);
int
setfsent(void);
void
endfsent(void);
DESCRIPTION
The getfsent(), getfsspec(), and getfsfile() functions each return a pointer to an object with the following structure containing file system
descriptions from the directory systems consulted by the opendirectoryd daemon. This will include records from the local /etc/fstab file.
struct fstab {
char *fs_spec; /* block special device name */
char *fs_file; /* file system path prefix */
char *fs_vfstype; /* File system type, ufs, nfs */
char *fs_mntops; /* Mount options ala -o */
char *fs_type; /* FSTAB_* from fs_mntops */
int fs_freq; /* dump frequency, in days */
int fs_passno; /* pass number on parallel fsck */
};
The fields have meanings described in fstab(5).
The getfsspec() and getfsfile() functions search in available directory services for a matching special file name or file system file name.
For programs wishing to read the entire database, getfsent() searches all available directory services on it's first invocation. It caches
the returned entries in a list and returns fstab entries one at a time.
The setfsent() and endfsent() functions clear the cached results from a previous getfsent() call.
Entries in the /etc/fstab file with a type field equivalent to FSTAB_XX are ignored.
RETURN VALUES
The getfsent(), getfsspec(), and getfsfile() functions return a NULL pointer on EOF or error. The setfsent() function returns 0 on failure,
1 on success. The endfsent() function returns nothing.
FILES
/etc/fstab
SEE ALSO opendirectoryd(8), fstab(5).
HISTORY
The getfsent() function appeared in 4.0BSD; the endfsent(), getfsfile(), getfsspec(), and setfsent() functions appeared in 4.3BSD.
BUGS
The data space used by these functions is thread-specific; if future use requires the data, it should be copied before any subsequent calls
to these functions overwrite it.
BSD April 7, 2003 BSD