10 More Discussions You Might Find Interesting
1. Shell Programming and Scripting
// Redhat
I have this code working, but need to add one more qualification so that I don't overwrite the files.
#!/bin/sh
cd /P2/log/cerner_prod/millennium/archive/
for f in *
do || continue #If this isn't a regular file, skip it.
&& continue #If a backup already... (2 Replies)
Discussion started by: Daniel Gate
2 Replies
2. Shell Programming and Scripting
Hi,
I have 32 files for which I want to check size of each file withe other file and if size is same then some action.
Any suggestion to write such script.
Logic:
have list of 32 files
using loop first compare size of one file with remaining 31 ,
do same iteration for each file with... (4 Replies)
Discussion started by: hemantakhandare
4 Replies
3. UNIX for Dummies Questions & Answers
Hello All,
I am running a script (power shell) from my desktop (Windows). The script needs to sftp a file(using PuTTY psftp.exe ) from my desktop to a server(UNIX server). Then, as a second step, the script needs to move (or copy and delete) this file from one directory on the server (UNIX server)... (3 Replies)
Discussion started by: scampi
3 Replies
4. Shell Programming and Scripting
I am pretty new to scripting, so I appreciate your advice in advance.
The problem:
100 directories each containing 2 files that have the same extension with random names. The only attribute that discriminates the files is size. I would like to write a script that compares the files for size... (6 Replies)
Discussion started by: JC_1
6 Replies
5. Shell Programming and Scripting
Dear all,
We are trying to get file information in a file from our sftp server with the program psftp.
lcd d:\sftpInfo
cd serverInfo
ls *.* > qqqqq.txt
After running the ls command, we see all files who are in the serverInfo directory on the screen. No error is showed.
Our question is:... (3 Replies)
Discussion started by: ton2204
3 Replies
6. Shell Programming and Scripting
Hello
i have file A created yesterday and file B created today
thanks to help create script compare between 2 files according to size
so if file B is less than 10% of file A i should have echo message with warning
also check if file B exist or not.
this should be run in loop for list of... (6 Replies)
Discussion started by: mogabr
6 Replies
7. Shell Programming and Scripting
hi,
i am new to this site.
i want to write a script to compare the file size of the files in the current dir with the files in the previous directory.
the files name will be same, but the filename format will be as xyzddddyymm.txt. the files will arrive with the month end date(i want to... (5 Replies)
Discussion started by: tweety
5 Replies
8. Shell Programming and Scripting
I have two file in a Directory.I want a script which will compare the Size of Two file.
Can Anyone Help me on this:
linasplg11:/opt/dataout/kk/linasplg11 # cat size
-rwxrwxrwx 1 root root 16658 Jan 8 13:58 lina_IP_SIP_1231325621210.xml
-rwxr-xr-x 1 root root 16672 Jan 8 14:30... (1 Reply)
Discussion started by: Aditya.Gurgaon
1 Replies
9. Shell Programming and Scripting
Hi guys,
firstly I'm working on SunOS 5.10 Generic_125100-10 sun4u sparc SUNW,Sun-Fire-V240
I've made a script to compress two directory and then send them to an other server via ftp. This is working very well.
Inside theis script I decide to log usefull data for troubleshooting in case of... (7 Replies)
Discussion started by: moustik
7 Replies
10. Shell Programming and Scripting
Is possible if I want to campare file size on source and destination after ftp transfer?
If anybody know, please explain to me. (1 Reply)
Discussion started by: icemania
1 Replies
fence_zvm(8) System Manager's Manual fence_zvm(8)
NAME
fence_zvm - I/O Fencing agent for GFS on s390 and zSeries VM clusters
SYNOPSIS
fence_zvm [OPTION]...
DESCRIPTION
fence_zvm is an I/O Fencing agent used on a GFS virtual machine in a s390 or zSeries VM cluster. It uses the s3270 program to log the
specified virtual machine out of VM. For fence_zvm to execute correctly, you must have s3270 in your PATH.
fence_zvm accepts options on the command line as well as from stdin. fence_node sends the options through stdin when it execs the agent.
fence_zvm can be run by itself with command line options which is useful for testing.
Vendor URL: http://www.ibm.com
OPTIONS
-a IPaddress
IP address or hostname of the Physical machine (required).
-h Print out a help message describing available options, then exit.
-u userid
userid of the virtual machine to fence (required).
-p password
password of the virtual machine to fence (required).
-S path
Full path to an executable to generate the password of the virtual machine to fence.
-q quiet mode, no output.
-V Print out a version message, then exit.
STDIN PARAMETERS
agent = < param >
This option is used by fence_node(8) and is ignored by fence_zvm.
ipaddr = < hostname | ip >
IP address or hostname of the Physical machine (required).
passwd = < param >
password of the virtual machine to fence (required).
passwd_script = < param >
Full path to an executable to generate the password of the virtual machine to fence.
userid = < param >
userid of the virtual machine to fence (required).
SEE ALSO
fence(8), fenced(8), fence_node(8)
fence_zvm(8)