08-09-2011
When I try to execute the command I get the error :
rm: Not a recognized flag: w
Usage: rm [-firRe] [--] File...
10 More Discussions You Might Find Interesting
1. Shell Programming and Scripting
Greetings all,
I'm pretty new to the use of mailx, having been using mutt most of the time. I'm interested to know how I can use mailx within a shell script to send out a formatted email with the following criterion:
1. My recipient's address is abcdef1000@gmail.com
2. The message body is... (2 Replies)
Discussion started by: rockysfr
2 Replies
2. Shell Programming and Scripting
Hi all,
Just like to ask if it is possible to do the following:
1. Have a shell script that calls ssh username@destinationhost
2. Upon successful verification, we ssh into the destination host and automatically use ksh to run a shell script that resides in the destination host. (Hopefully no... (8 Replies)
Discussion started by: rockysfr
8 Replies
3. Shell Programming and Scripting
Hello,
Im a beginner. Im writing a ksh script with awk. Is it possible to assign the output of the awk to a shell variable?
Like,
shell_variable= awk '$1 == "shell" {abc= $2 }' /tmp/cust_det
echo $shell_variable
Please excuse my ignorance. Thanks in advance. (4 Replies)
Discussion started by: Nic_writes
4 Replies
4. Shell Programming and Scripting
I am using /usr/bin/ksh in AIX
I am reading the values of $dbname, $dbatmpdir/dbdir.$$, and $scope from a different file
All I have to do is check if $dbname exists in file $dbatmpdir/dbdir.$$ and
$scope should have a value either 'TABLE' or 'SCHEMA'.
When I execute the following code. I am... (3 Replies)
Discussion started by: tenderfoot
3 Replies
5. Shell Programming and Scripting
Can someone tell me when the script is called, what does it do? I can't see it is going to run anything. (1 Reply)
Discussion started by: dp100022
1 Replies
6. Shell Programming and Scripting
I am newbie in UNIX, so please excuse me for the stupid question.:)
Here is a problem:
I created ksh script where the part of the functionality include an opening of a second session with another shell process "runrep"(runrep is a custom reporting shell designed by Advent Geneva).
When I run my... (3 Replies)
Discussion started by: alexstar
3 Replies
7. Shell Programming and Scripting
hi team,
i have a file, which contains only variable and its value
param.ksh
---------
export A=123
export B=345
export C=567
export D=OPLI
export E=OL89PO
From shell script, i am invoking this file and use the value of this variable. Now there are 5 variable in above file. Before i... (1 Reply)
Discussion started by: ace_friends22
1 Replies
8. Shell Programming and Scripting
Anyone know how to check a filename that contains a date and compare whiich file is older using a ksh shell script? The filename looks like aaaaa_20110615 (1 Reply)
Discussion started by: Bperl1967
1 Replies
9. UNIX for Dummies Questions & Answers
Hi,
I have a ksh shell script that accesses databases to drop and create tables and the script also creates text files.
This shell script is accessed thru a java application that i would like to turn multi-user, but the only way that i can do that is if I can figure out a way to lock the shell... (2 Replies)
Discussion started by: ndedhia1
2 Replies
10. Shell Programming and Scripting
My goal is to create a script that will check if in a test or production environment. I wrote this script to check $host variable to check which server I'm on but this script does not work.
if
then
BASE=/home/fmtest; export BASE
else
BASE=/home/fmprod; export BASE
fi
... (5 Replies)
Discussion started by: Bperl1967
5 Replies
LEARN ABOUT OSX
mpi_file_set_size
MPI_File_set_size(3OpenMPI) MPI_File_set_size(3OpenMPI)
NAME
MPI_File_set_size - Resizes a file (collective).
SYNTAX
C Syntax
#include <mpi.h>
int MPI_File_set_size(MPI_File fh, MPI_Offset size)
Fortran Syntax (see FORTRAN 77 NOTES)
INCLUDE 'mpif.h'
MPI_FILE_SET_SIZE(FH, SIZE, IERROR)
INTEGER FH, IERROR
INTEGER(KIND=MPI_OFFSET_KIND) SIZE
C++ Syntax
#include <mpi.h>
void MPI::File::Set_size(MPI::Offset size)
INPUT PARAMETERS
fh File handle (handle).
size Size to truncate or expand file (integer).
OUTPUT PARAMETER
IERROR Fortran only: Error status (integer).
DESCRIPTION
MPI_File_set_size resizes the file associated with the file handle fh, truncating UNIX files as necessary. MPI_File_set_size is collective;
all processes in the group must pass identical values for size.
When using MPI_File_set_size on a UNIX file, if size is larger than the current file size, the file size becomes size. If size is smaller
than the current file size, the file is truncated at the position defined by size (from the beginning of the file and measured in bytes).
Regions of the file which have been previously written are unaffected.
MPI_File_set_size does not affect the individual file pointers or the shared file pointer.
Note that the actual amount of storage space cannot be allocated by MPI_File_set_size. Use MPI_File_preallocate to accomplish this.
It is erroneous to call this function if MPI_MODE_SEQUENTIAL mode was specified when the file was opened.
FORTRAN 77 NOTES
The MPI standard prescribes portable Fortran syntax for the SIZE argument only for Fortran 90. FORTRAN 77 users may use the non-portable
syntax
INTEGER*MPI_OFFSET_KIND SIZE
where MPI_OFFSET_KIND is a constant defined in mpif.h and gives the length of the declared integer in bytes.
ERRORS
Almost all MPI routines return an error value; C routines as the value of the function and Fortran routines in the last argument. C++ func-
tions do not return errors. If the default error handler is set to MPI::ERRORS_THROW_EXCEPTIONS, then on error the C++ exception mechanism
will be used to throw an MPI:Exception object.
Before the error value is returned, the current MPI error handler is called. For MPI I/O function errors, the default error handler is set
to MPI_ERRORS_RETURN. The error handler may be changed with MPI_File_set_errhandler; the predefined error handler MPI_ERRORS_ARE_FATAL may
be used to make I/O errors fatal. Note that MPI does not guarantee that an MPI program can continue past an error.
Open MPI 1.2 September 2006 MPI_File_set_size(3OpenMPI)