07-09-2007
how to find whether a file is local or remote file?
Is there any system call to find whether a file is local or remote??
Thanks in advance!!
-Jack Fds
10 More Discussions You Might Find Interesting
1. Solaris
Hi All,
i wannna copy a file from the remote machine to my local machine using FTP protocol. i have made a connection to the remote machine , then i used the "get" cmd to copy the remote file as below :->
ftp> get
(remote-file) /home/aruba/opmtools/was50/Was5Install.doc
(local-file)... (1 Reply)
Discussion started by: sonbag_pspl
1 Replies
2. Shell Programming and Scripting
Perl Guru....
I need to compare two diff file (file1.abc will locate in current server and file2.abc will locate in remote server), basically the script will look for match in both file and only will send out email if there is no match and also give me list of unmatch and dups as well.
So... (0 Replies)
Discussion started by: amir07
0 Replies
3. UNIX for Dummies Questions & Answers
Is there a way to find if the file systems mounted on a AIX/Linux box is local or remote? (1 Reply)
Discussion started by: Un1xNewb1e
1 Replies
4. Shell Programming and Scripting
I m stuck with a issue.
I need to calculate the time difference between two files.. one on the local machine and one on the remote machine using a script.
Can any one suggest the way this can be achevied
Thanks,
manohar (1 Reply)
Discussion started by: meetmano143
1 Replies
5. Shell Programming and Scripting
Hi,
I have written a script which would FTP a dump file to the FTP server and log the whole activity into a file. to confirm the success of the file copy i grep for "226 file receive OK" and then send out an email saying success. Now i want to make sure the bytes of the local file and... (4 Replies)
Discussion started by: dba.admin2008
4 Replies
6. HP-UX
Hello,
I know this is somewhat strange, but please let me know if possible. I want to execute a program file in the remote machine with command on the local machine. Let me make things more clear.
Suppose I have a cc on my local system and do not have that on the remote system. I want to use... (2 Replies)
Discussion started by: Veera_Raghav
2 Replies
7. Red Hat
Hi All,
URGENT - Please help me form a scipt for this:
I need the LATEST file from a dir on REMOTE machine to be SCP'd to a dir on local machine. (and I need to execute this from local server)
I know that the below cmd is used to find the LATEST file from a dir. But this command is not... (3 Replies)
Discussion started by: me_ub
3 Replies
8. UNIX for Dummies Questions & Answers
Hello,
I have a file at remote server. I have to select only current day's files that are dropped on ftp server. The files do not have date or timestamp on them.
so I plan to get the file listing from remote server to the local server. Based on file listing date I can find out when the files... (2 Replies)
Discussion started by: pavan_test
2 Replies
9. Shell Programming and Scripting
Hi Guys,
So what I am trying to do is :
Host A should do a SSH to Host B to F. Login to the remote host and gather the output of uptime and write to to a file in HostA.
So by the end of the script, HostA should contain a file that contains the uptime output of Host B,C,D,E,F.
Right now... (1 Reply)
Discussion started by: Junaid Subhani
1 Replies
10. Shell Programming and Scripting
Hi,
I came across the scenario, that I need to copy files from the remote server to my local. The files in the remote server are created by another job and its keep on generating the files in that remote folder.
We can't able to use SCP command and we're using SFTP to connect the server and... (3 Replies)
Discussion started by: Janarthan
3 Replies
LEARN ABOUT OPENSOLARIS
fs
default_fs(4) File Formats default_fs(4)
NAME
default_fs, fs - specify the default file system type for local or remote file systems
DESCRIPTION
When file system administration commands have both specific and generic components (for example, fsck(1M)), the file system type must be
specified. If it is not explicitly specified using the -F FSType command line option, the generic command looks in /etc/vfstab in order to
determine the file system type, using the supplied raw or block device or mount point. If the file system type can not be determined by
searching /etc/vfstab, the command will use the default file system type specified in either /etc/default/fs or /etc/dfs/dfstypes, depend-
ing on whether the file system is local or remote.
The default local file system type is specified in /etc/default/fs by a line of the form LOCAL=fstype (for example, LOCAL=ufs). The default
remote file system type is determined by the first entry in the /etc/dfs/fstypes file.
File system administration commands will determine whether the file system is local or remote by examining the specified device name. If
the device name starts with ``/'' (slash), it is considered to be local; otherwise it is remote.
The default file system types can be changed by editing the default files with a text editor.
FILES
/etc/vfstab list of default parameters for each file system
/etc/default/fs the default local file system type
/etc/dfs/fstypes the default remote file system type
SEE ALSO
fsck(1M), fstypes(4), vfstab(4)
SunOS 5.11 20 Mar 1992 default_fs(4)