09-19-2012
windows sometimes reacts badly to running lots and lots of external commands in too short a time, even under good conditions. If you reduce the number or at least the speed at which you use shell externals, there will be less chance of error. Can you show the script?
10 More Discussions You Might Find Interesting
1. Windows & DOS: Issues & Discussions
The link:
Cygwin Tips by zzapper Linux Like Environment for Windows
The tip I found most useful:
Scroll down to this line:
It describes how to add useful Windows-side folders to your Cygwin install by changing them into POSIX paths, accessible via cd /<shortcutname> but invisible to... (0 Replies)
Discussion started by: SilversleevesX
0 Replies
2. UNIX for Dummies Questions & Answers
Hello everyone,
I am struggling a bit with a batch script that I need to run in cygwin. I work in winXP and I had to write some awk scripts to do some file manipulation, and now I would like to automate the process by just running a batch file so that my colleagues can use it easily.
Now, the... (2 Replies)
Discussion started by: Teroc
2 Replies
3. Shell Programming and Scripting
Hi,
i am launching a script which open a ssh connexion to a cluster's node. Once on the node, the script calls the problematic command head and wc.
I receive a message error as follow which come from two different scripts :
line 31: head: command not found
line 18: wc: command not found
... (6 Replies)
Discussion started by: masy1800
6 Replies
4. Shell Programming and Scripting
Hi All,
Linux lxs3er06 2.6.9-67.ELsmp #1 SMP Wed Nov 7 13:58:04 EST 2007 i686 i686 i386 GNU/Linux
Issue:
While executing shell scripts in bash shell, following error messages are thrown:
rm:command not found
On doing little investigation, I added '/bin' to $PATH and on doing echo... (9 Replies)
Discussion started by: a1_win
9 Replies
5. Shell Programming and Scripting
Hello,
I like to begin with :wall:.. literally... It has been 4 days and I have no idea how to fix it.
Environment - AIX 5.3
I wrote a script to call on ssh to log into another box via PKA to do something else.
If I run the script on the terminal, it works 100%. If the SAP customised... (11 Replies)
Discussion started by: plonkagain
11 Replies
6. Shell Programming and Scripting
I am trying to find the number of files whose name starts with uni.
Below is the code but it is giving error. :confused:
#!/bin/csh
FILES_NAME ='files_list';
FILE_NAME_PATTERN = 'uni*';
NO_OF_FILES;
ls -l $FILE_NAME_PATTERN > $FILES_NAME ;
NO_OF_FILES = `wc -l $FILES_NAME`;
echo... (3 Replies)
Discussion started by: hiten.r.chauhan
3 Replies
7. Shell Programming and Scripting
hi,
i have a problem with my expect script, here is MyScript:
#!/usr/bin/expect
set pass
set c
set command
spawn sudo $command
expect "assword"
send "$pass\r"
expect eof My problem is that when i execute MyScript with the command : "./MyScript mypassword apt-get_install_git"i get... (6 Replies)
Discussion started by: gongotar
6 Replies
8. Shell Programming and Scripting
I am running the export command within a view to use that value inside my build script. But while executing it it is saying "export command not found"
My code is as follows:
--------------------------
#!/bin/sh
user="test"
DIR="/bldtmp/"$user
VIEW="test.view1"
echo "TMPDIR before export... (4 Replies)
Discussion started by: dchoudhury
4 Replies
9. Shell Programming and Scripting
Hi friends,
I am using below script to do some work. But even though script is working fine but while executing it i am getting command not found error. :(
Here is the script :-
#!/bin/sh
Names="name.txt"
###main#####
for LINE in `cat ${Names}`
do
... (3 Replies)
Discussion started by: harpal singh
3 Replies
10. Shell Programming and Scripting
files="UserRightAssignment.txt"
echo $files
echo '1.1.1.2.2.1;' `grep -ai '^Modify an object label' $files`Hi there, I got such an output when using unix,please advise
1.1.1.2.2.1;
: No such file or directoryxt
I am using sh ura.sh (3 Replies)
Discussion started by: alvinoo
3 Replies
LEARN ABOUT ULTRIX
st_rndx_idn
stcu(3) Library Functions Manual stcu(3)
Name
stcu, st_cuinit, st_setchdr, st_currentpchdr, st_free, st_extadd, st_pext_iext, st_pext_rndx, st_iextmax, st_extstradd, st_str_extiss,
st_idn_index_fext, st_idn_rndx, st_pdn_idn, st_rndx_idn, st_setidn - routines that provide a compilation unit symbol table interface
Syntax
#include <syms.h>
pCHDRR st_cuinit ()
void st_setchdr (pchdr)
pCHDRR pchdr;
pCHDRR st_currentpchdr()
void st_free()
long st_extadd (iss, value, st, sc, index)
long iss;
long value;
long st;
long sc;
long index;
pEXTR st_pext_iext (iext)
long iext;
pEXTR st_pext_rndx (rndx)
RNDXR rndx;
long st_iextmax()
long st_extstradd (str)
char *str;
char *st_str_extiss (iss)
long iss;
long st_idn_index_fext (index, fext)
long index;
long fext;
long st_idn_rndx (rndx)
RNDXR rndx;
pRNDXR st_pdn_idn (idn)
long idn;
RNDXR st_rndx_idn (idn)
long idn;
void st_setidn (idndest, idnsrc)
long idndest;
long idnsrc;
Description
The stcu routines provide an interface to objects that occur once per object, rather than once per file descriptor (for example, external
symbols, strings, and dense numbers). The routines provide access to the current chdr (compile time hdr), which represents the symbol ta-
ble in running processes with pointers to symbol table sections rather than indices and offsets used in the disk file representation.
A new symbol table can be created with st_cuinit. This routine creates and initializes a CHDRR (see cmplrs/stsupport.h). The CHDRR is the
current chdr and is used in all later calls. A chdr can also be created with the read routines (see The st_cuinit routine returns a
pointer to the new CHDRR record.
st_currentchdr Returns a pointer the current chdr.
st_setchdr Sets the current chdr to the pchdr argument and sets the per file structures to reflect a change in symbol tables.
st_free Frees all constituent structures associated with the current chdr.
st_extadd Lets you add to the externals table. It returns the index to the new external for future reference and use. The ifd field
for the external is filled in by the current file (see For more details on the parameters, see sym.h.
st_pext_iext and st_pext_rndx
Returns pointers to the external, given a index referencing them. The latter routine requires a relative index where the
index field should be the index in external symbols and the rfd field should be the constant ST_EXTIFD. NOTE: The externals
contain the same structure as symbols (see the SYMR and EXTR definitions).
st_iextmax Returns the current number of entries in the external symbol table.
The iss field in external symbols (the index into string space) must point into external string space.
st_extstradd Adds a null-terminated string to the external string space and returns its index.
st_str_extiss Converts that index into a pointer to the external string.
The dense number table provides a convenience to the code optimizer, generator, and assembler. This table lets them reference symbols from
different files and externals with unique densely packed numbers.
st_idn_index_fext
Returns a new dense number table index, given an index into the symbol table of the current file (or if fext is set, the
externals table).
st_idn_rndx Returns a new dense number, but expects a RNDXR (see sym.h to specify both the file index and the symbol index rather than
implying the file index from the current file. The RNDXR contains two fields: an index into the externals table and a file
index rsyms can point into the symbol table, as well). The file index is ST_EXTIFD (see stsupport.h) for externals.
st_rndx_idn Returns a RNDX, given an index into the dense number table.
st_pdn_idn Returns a pointer to the RNDXR index by the idn argument.
See Also
stfe(3), stfd(3)
RISC stcu(3)