09-13-2010
set -o vi giving set: Syntax error
when trying : set -o vi
getting error like-
: set: Syntax error
help me
Moderator's Comments:
|
|
Double post (of sorts). Continue here.
|
|
Last edited by Scott; 09-13-2010 at 02:40 AM..
8 More Discussions You Might Find Interesting
1. UNIX for Dummies Questions & Answers
I'm having an issue when I export within my program. I'm getting the variable name, not the variable value. I have a configuration file (config.txt) that has the values of the variables set as so:
set -a
export ARCHIVEPOSourceDir="/interfaces/po/log /interfaces/po/data"
export... (2 Replies)
Discussion started by: ParNone
2 Replies
2. Shell Programming and Scripting
#! /bin/csh
set umr=UMR
set fd1=a
set fd2=b
set ext1=1.txt
set ext2=2.txt
set ext=.txt
#foreach i ( `ls`)
foreach i ( *)
set file_nm=$i
set bh_nm=`echo $file_nm | cut -d"_" -f2`
if("$bh_nm" != "$umr") then
set bh_ext=`echo $file_nm... (0 Replies)
Discussion started by: jdsignature88
0 Replies
3. UNIX for Dummies Questions & Answers
Hello, I need to write a program which sets server's ip address, router, network mask. Program also should set if it is an internal or external ip. Maybe someone can help me ? Any information from u is very useful :b:
I stopped at .. :(
#!/bin/sh
A=`hostname -i`
echo "server ip address is $A"... (4 Replies)
Discussion started by: zagaruika
4 Replies
4. Shell Programming and Scripting
SSHing into a machine can take a few seconds, but after I'm in, the commands return quickly. I was wondering if the timeout setting can be changed once I'm logged into the machine. Does anyone know if this can be set on the fly? The problem here is, if I have to set timeout = 10, it'll take 10... (1 Reply)
Discussion started by: mrwatkin
1 Replies
5. Solaris
Hi,
I have a Solaris (SunOS 5.10) installed, by default with the en_AU.UTF-8 locale. I want to change it to en_US.UTF-8
With AU, I have no issues whatsoever, so I installed the language package and now locale -a shows "en_US.UTF-8".
Problem is even with LC_ALL set in etc/default/init, the... (2 Replies)
Discussion started by: asdfg
2 Replies
6. UNIX for Dummies Questions & Answers
i don't know where to put this question hence it is here.
Presently, i have X unix machines which each of them running a set of executables with various unique configurations.
i would like to have run multiple set of machines the same set of executeables but each running different... (0 Replies)
Discussion started by: lchunleo
0 Replies
7. Shell Programming and Scripting
Hi,
I am looking for a shell script which serves the below purpose.
Please find below the algorithm for the same and any help on this would be highly appreciated.
1)set of strings need to be replaced among set of files(directory may contain different types of files)
2)It should search for... (10 Replies)
Discussion started by: Amulya
10 Replies
8. Shell Programming and Scripting
Hi,
I have an if condition on executing it is giving syntax error as below:
--------------------------------------------------------------------------------------
line 61: syntax error in conditional expression
./play_test.sh: line 61: syntax error near `]'
./play_test.sh: line 61: ` if... (2 Replies)
Discussion started by: ramki067
2 Replies
LEARN ABOUT OSX
mpi_initialized
MPI_Initialized(3OpenMPI) MPI_Initialized(3OpenMPI)
NAME
MPI_Initialized - Indicates whether MPI_Init has been called.
SYNTAX
C Syntax
#include <mpi.h>
int MPI_Initialized(int *flag)
Fortran Syntax
INCLUDE 'mpif.h'
MPI_INITIALIZED(FLAG, IERROR)
LOGICAL FLAG
INTEGER IERROR
C++ Syntax
#include <mpi.h>
bool Is_initialized()
OUTPUT PARAMETERS
flag Flag is true if MPI_Init has been called and false otherwise.
IERROR Fortran only: Error status (integer).
DESCRIPTION
This routine may be used to determine whether MPI_Init has been called. It is the only routine that may be called before MPI_Init is
called.
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. By default, this error handler aborts the MPI job, except for
I/O function errors. The error handler may be changed with MPI_Comm_set_errhandler; the predefined error handler MPI_ERRORS_RETURN may be
used to cause error values to be returned. Note that MPI does not guarantee that an MPI program can continue past an error.
SEE ALSO
MPI_Init
Open MPI 1.2 September 2006 MPI_Initialized(3OpenMPI)