Sponsored Content
Top Forums UNIX for Beginners Questions & Answers "Mv" command does not work in loop, but works manually Post 303040730 by RudiC on Tuesday 5th of November 2019 04:43:19 PM
Old 11-05-2019
The file names and the sequence number are not necessarily synchronised; e.g. a single file CAT_Run02 will yield an nrun value of 1 and so the seq will never produce a match. A different approach should be chosen.


Howsoever, this would not explain the error message you saw. Nor can I. Pls run the script again with the -x (xtrace) option set, and post the result.
 

8 More Discussions You Might Find Interesting

1. Shell Programming and Scripting

How to get Find command work with a variable passing "*" value?

Hi guy, I have a problem to pass a variable containing '*' value to FIND command. below is the script. It doesn't work by submit below command: rmf.sh name '*.txt' or rmf.sh name *.txt I've tried either optn="-name '$2'" or optn="-name $2"., and there is no luck. ### (script... (5 Replies)
Discussion started by: unxuser
5 Replies

2. UNIX for Advanced & Expert Users

sometimes "ps -elf" command doesn't work

when i give "ps -elf" or "ps" system gets hung. if i press "^c" come out from it... pls help..what should i do to get it resolved. thanks CKanth (4 Replies)
Discussion started by: srikanthus2002
4 Replies

3. Shell Programming and Scripting

Silly question - how does the "mv" command work?

I know this may sound really elemental, but I'm trying to figure out if I'm correct. I have a script that moves a file from a temp directory to (what I am calling) a pickup directory. On another machine, I have this "other program" that scans the contents of the pickup directory for a... (5 Replies)
Discussion started by: gseyforth
5 Replies

4. AIX

"/" doesn't work on command prompt for searching commands last typed

When I use "/" to look for a particular command that I typed in the current session it says D02:-/home/user1/temp> /job ksh: /job: not found. D02:-/home/user1/temp> previously it used to fetch all the commands which had job in it.. for example subjob, endjob, joblist etc... may I... (7 Replies)
Discussion started by: meetzap
7 Replies

5. Shell Programming and Scripting

awk command to replace ";" with "|" and ""|" at diferent places in line of file

Hi, I have line in input file as below: 3G_CENTRAL;INDONESIA_(M)_TELKOMSEL;SPECIAL_WORLD_GRP_7_FA_2_TELKOMSEL My expected output for line in the file must be : "1-Radon1-cMOC_deg"|"LDIndex"|"3G_CENTRAL|INDONESIA_(M)_TELKOMSEL"|LAST|"SPECIAL_WORLD_GRP_7_FA_2_TELKOMSEL" Can someone... (7 Replies)
Discussion started by: shis100
7 Replies

6. Red Hat

files having Script which works behind "who" & "w" commands

Dear All, plz print the path of files which have the script of "who" & "w" commands. thnx in advance. (6 Replies)
Discussion started by: saqlain.bashir
6 Replies

7. UNIX for Dummies Questions & Answers

Using "mailx" command to read "to" and "cc" email addreses from input file

How to use "mailx" command to do e-mail reading the input file containing email address, where column 1 has name and column 2 containing “To” e-mail address and column 3 contains “cc” e-mail address to include with same email. Sample input file, email.txt Below is an sample code where... (2 Replies)
Discussion started by: asjaiswal
2 Replies

8. Red Hat

"/usr/sbin/hpacucli ctrl all show" command does not work

Dear Concern, We have observed that following command stuck/does not work in some RedHat nodes. Please advise us to troubleshoot the issue. /usr/sbin/hpacucli ctrl all show Note: HP Array Configuration Utility CLI for Linux 64-bit With Best Regards, Md. Abdullah-Al Kauser (3 Replies)
Discussion started by: makauser
3 Replies
MPIMSG(1)							   LAM COMMANDS 							 MPIMSG(1)

NAME
mpimsg - Monitor MPI message buffers under LAM. SYNOPSIS
mpimsg [-gps] [-h] [-O] [-c seq] [-d seq] [-m seq] [-e #] [-B #] [nodes] [processes] OPTIONS
-gps Print process information in GPS format. -h Print useful information on this command. -O Multicomputer is homogeneous. Do no data conversion. See mpirun(1). -c seq Print a description of the communicator used in message seq. See mpitask(1). -d seq Print a description of the datatype used in message seq. See mpitask(1). -e nn Limit printing the contents of a message to # elements. -m seq Print the contents of message seq. See "Message Contents". -B nn Change the limit on the number of messages reported. The -c, -d and -m options are mutually exclusive. DESCRIPTION
The mpimsg command displays information on buffered messages which were sent using the MPI library and are currently buffered on the speci- fied nodes and destined to the specified processes. mpimsg typically only works when the "daemon" mode of communication is used; it cannot be used to monitor "client to client" (C2C) communications. With no processes or nodes explicitly specified on the command line, all MPI messages on all nodes are reported. % mpimsg SRC (G/L) DEST (G/L) TAG COMM COUNT DATATYPE MSG 0/0 1/1 123 WORLD 64 INT n1,#0 For each message mpimsg outputs the following information: SRC an identification of the source process - A `/' followed by the process's rank within the message's communicator is also displayed. See mpitask(1) for a discussion of process identification. DEST an identification of the destination process TAG the tag from the message envelope COMM the communicator identifier COUNT the number of data elements in the message DATATYPE the element datatype MSG the message identifier - It is expressed in the form nnodeid,#seqnum, where nodeid is the physical location of the buffered message and seqnum is a sequence number assigned to the message by LAM. These values are used to get further information on the communicator, datatype or message contents. More detailed information on the message's communicator or datatype can be obtained with the -c or -d options. The information is the same as obtained by mpitask(1) regarding processes. Unlike mpitask(1), these options in mpimsg require a message identifier to isolate a single message. Keep in mind that mpimsg invocations are snapshots of system status. It is possible that a buffered message shown in a call of mpimsg may be received prior to a subsequent call to mpimsg made in order to display further information. In this case nothing is printed. Message Contents If the -m option is given then the contents of the specified message are displayed. First the destination process identification and the message identification is printed and then the message contents are printed in a for- mat somewhat similar to that produced by the UNIX utility od(1). On the left hand side of each line the offset from the beginning of the data buffer is printed in hexadecimal. After that individual elements are printed according to their type as deduced from the type signa- ture. Holes in the datatype and changes in basic type force newlines in the output so in effect all elements on the same line of output are actually contiguous in the buffer and of the same basic type. The amount of a message that is to be printed can be limited with the -e option. The limit is specified in terms of a maximum number of elements of a basic datatype that are to be printed. For example if a message consists of 100 structures with each structure containing three integers, then a limit of 20 would result in the display of the first 20 integers in the message, as opposed to the first 20 struc- tures (or 60 integers). Buffered message data is by default stored in LAM representation and will be converted to local representation for display. In the case of a homogeneous LAM and MPI processes run with the -O switch to mpirun(1) message data will be stored in the common local representation of the machines in the LAM. In this case when using the -m option the -O switch can be given in order to prevent the data conversion for dis- play. EXAMPLES
mpimsg Report all MPI messages. mpimsg n1 -m 8 -e 20 Print the first 20 elements of message #8 on node 1. DIAGNOSTICS
If no buffered messages are found, only the title line is displayed. If the message specified by -c, -d or -m is no longer buffered, noth- ing is printed. SEE ALSO
bfctl(1), bfstate(1), libmpi(3), mpitask(1), sweep(1) LAM 7.1.4 July, 2007 MPIMSG(1)
All times are GMT -4. The time now is 10:17 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy