06-25-2009
Quote:
Originally Posted by
vgersh99
cannot do that unless the 'other server' directory is NFS mounted.
Thats a shame.
Thanks for your help.
10 More Discussions You Might Find Interesting
1. Shell Programming and Scripting
Hi,
I have a script below. It get's the data from the output of a script that is running hourly. My problem is every time my script runs, it deletes the previous data and put the current data. Please see output below. What I would like to do is to have the hourly output to be appended on the... (3 Replies)
Discussion started by: ayhanne
3 Replies
2. Shell Programming and Scripting
Hi All,
I am writing a Perl script such that the output from "perl myscript.pl file1" to be appended to another file name called file2.
I tried out with the below code but couldn't work.
Can any expert give me some advice?
open(OUTPUT, 'perl myscript.pl file1 |');
close OUTPUT;... (7 Replies)
Discussion started by: Raynon
7 Replies
3. AIX
I want to read a log file from a particular location.In the logfile , lines contains timestamp.I need to compare the timestamp in the logfile with the current date.If the timpestamp in the log file is less than 4 hours then i need to read the file from that location.Below is the file format.Please... (1 Reply)
Discussion started by: achu
1 Replies
4. AIX
I want to read a log file from a particular location.In the log file each line starts with timestamp.I need to compare the timestamp in the logfile with the current date.If the timpestamp in the log file is less than 4 hours then i need to read the file from that location.Below is the file... (1 Reply)
Discussion started by: achu
1 Replies
5. UNIX for Dummies Questions & Answers
I am running a command which has a parameter that outputs the results to a file each time it is run.
Here is the command:
--fullresult=true > importlog.xml
Can I add the output to the file rather than creating a new one which overwrites the existing one?
If not can I make the file name... (2 Replies)
Discussion started by: Sepia
2 Replies
6. Shell Programming and Scripting
Hi All, can you help me with this:
grep XXX dir/*.txt|wc -l > newfile.txt - this put the results in the newfile.txt, but I want to add another column in the newfile.txt, string 'YYYYY', separated somehow, which corresponds on the grep results?
For example grep will grep XXX dir/*.txt|wc -l >... (5 Replies)
Discussion started by: apenkov
5 Replies
7. Shell Programming and Scripting
Hi,
How to change the filenames with timestamp in sub folders
I have the following code to select the records.
find . -type f -name '*pqr*' -ctime 1 -print
The following is the example
app_root_dir="/`echo $ScriptDir | cut -d'/' -f2`"
$app_root_dir/../BadFiles directory
uvw.bad... (3 Replies)
Discussion started by: bobbygsk
3 Replies
8. Shell Programming and Scripting
Hi,
I have a test.zip archive that contains
test.zip --> (file_1.txt, file_2.txt , file_3.txt)
I need to unzip the file like this,
file_1_timestamp.txt
file_1_timestamp.trg
file_2_timestamp.txt
file_2_timestamp.trg
file_3_timestamp.txt
file_3_timestamp.trg
Could you please let me know... (7 Replies)
Discussion started by: Shandel
7 Replies
9. Shell Programming and Scripting
Hello,
i'm trying to force a command to read every second from an interface
watch -n1 (command) /dev/x | cat >> output
but it continue to overwrite the file, without append the content
Thanks and advace for help as usual
regards (4 Replies)
Discussion started by: Board27
4 Replies
10. Shell Programming and Scripting
So basically I have a log file and each line in this log file starts with a timestamp:
MON DD HH:MM:SS
SEP 15 07:30:01
I need to grep all the lines between last hour timestamp and current timestamp. Then these lines will be moved to a tmp file from which I will grep for particular strings. ... (1 Reply)
Discussion started by: nms
1 Replies
LEARN ABOUT SUSE
mount.nfs
MOUNT.NFS(8) System Manager's Manual MOUNT.NFS(8)
NAME
mount.nfs, mount.nfs4 - mount a Network File System
SYNOPSIS
mount.nfs remotetarget dir [-rvVwfnsh ] [-o options]
DESCRIPTION
mount.nfs is a part of nfs(5) utilities package, which provides NFS client functionality.
mount.nfs is meant to be used by the mount(8) command for mounting NFS shares. This subcommand, however, can also be used as a standalone
command with limited functionality.
mount.nfs4 is used for mounting NFSv4 file system, while mount.nfs is used to mount NFS file systems versions 3 or 2. remotetarget is a
server share usually in the form of servername:/path/to/share. dir is the directory on which the file system is to be mounted.
OPTIONS
-r Mount file system readonly.
-v Be verbose.
-V Print version.
-w Mount file system read-write.
-f Fake mount. Don't actually call the mount system call.
-n Do not update /etc/mtab. By default, an entry is created in /etc/mtab for every mounted file system. Use this option to skip making
an entry.
-s Tolerate sloppy mount options rather than fail.
-h Print help message.
nfsoptions
Refer to nfs(5) or mount(8) manual pages.
NOTE
For further information please refer nfs(5) and mount(8) manual pages.
FILES
/etc/fstab file system table
/etc/mtab table of mounted file systems
SEE ALSO
nfs(5), mount(8),
AUTHOR
Amit Gud <agud@redhat.com>
5 Jun 2006 MOUNT.NFS(8)