Hi,
when I execute the below script, I am getting following error "Badly placed ()'s". can anyone please help me fix
----------------------------------------------------------
# Usage: ani -n -a -s -w -d
#
#
# help_ani() To print help
#
help_ani()
{
echo "Usage: $0 -n -a -s -w -d"... (3 Replies)
Hi,
I am doing the following but it complains and says "for:badly formed number"
does anyone know why?
#!/bin/tcsh
foreach(....)
............
set depth=64
set width=23
if ($depth==64) then
echo "if"
set addr_bits=5
else
echo "else"
endif
echo "addr_bits:$addr_bits"
echo... (3 Replies)
how can I delete one line above and below the matching pattern ?
e.g I want to delete the line above and below the line with %CLI- in example below :
$CHECKSUM $1$DGA1043:TSTST01.DBF;1
%CLI-E-OPENIN, error opening $1$DGA1043:TSTST01.DBF
-RMS-E-FLK, file currently locked by another user
... (6 Replies)
I have the following script running every day numerous times a day and it works fine, but very occasionally I get the following error
if: Badly formed number.
Anyone know why?
Here is the script that runs with the follow parms
LCTMDBSE 100000 130000 160000
#!/bin/csh
... (0 Replies)
i'm trying to run the following program but i keep getting the message "badly placed ()'s" can u help?
#include "modularity_mat.h"
#include "../sparse_mlpl/sparse_matrix.h"
adj_matrix_arr* allocate_mem_for_matrix_arr (int y) {
/* Create the adj matrix and allocate memory */
... (2 Replies)
The shell error message "Badly placed ()'s" can occur for a surprisingly simple oversight. If the script begins with a shell-invocation comment, but is missing the exclamation-point, it is simply a comment and not an invocation. If you attempt to execute it from a shell other than the shell you... (4 Replies)
The terminal is bash.
Whenever I try to execute csh just by itself it gives Badly Placed ()'s.
Whenever I try to use csh with a script it also gives Badly Placed ()'s.
My script is this, there is nothing wrong with it, since it used by other students in class as well. (I have also asked... (5 Replies)
I dont know why this Linux would give me badly placed () error all the time for this;
#include <stdio.h>
int main()
{
register int num=0 ;
while ((num < 5))
++num;
printf("Pass %d \n", num) ;
return 0 ;
}
can anyone help me please? (11 Replies)
Edit - I don't know how to delete posts. The question I asked here ended up not being the question I should have asked as I didn't realise I needed to edit my script to comply with SGE.
Hi,
My script is:
#!/bin/bash
# Perform fastqc on files in a specified directory.
for ((j=1;... (8 Replies)
Discussion started by: una1992
8 Replies
LEARN ABOUT REDHAT
perlbeos
PERLBEOS(1) Perl Programmers Reference Guide PERLBEOS(1)NAME
README.beos - Perl version 5 on BeOS
DESCRIPTION
Notes for building Perl under BeOS.
General Issues with Perl on BeOS
To compile perl under BeOS R4 x86:
./Configure -d
and hit ^C when it asks you if you want to make changes to config.sh; edit config.sh and do the following: change d_socket='define' to
='undef'; remove SDBM, Errno, and Socket from dynamic_ext= and nonxs_ext=; add '#define bool short' to x2p/a2p.h;
../Configure -S; make; make install
cd ~/config/lib; ln -s 5.00502/BeOS-BePC/CORE/libperl.so .
(substitute 5.00502 with the appropriate filename)
BeOS Release-specific Notes
R4 x86
Dynamic loading finally works! Yay! This means you can compile your own modules into perl. However, Sockets and Errno still don't work.
(Hopefully, sockets will at least work by R5, if not sooner.)
R4 PPC
I have not tested this. I rather severely doubt that dynamic loading will work. (My BeBox is in pieces right now, following a nasty
disk crash.) You may have to disable dynamic loading to get the thing to compile at all. (use `./Configure` without -d, and say 'no' to
'Build a shared libperl.so'.)
Contact Information
If you have comments, problem reports, or even patches or bugfixes (gasp!) please email me.
28 Jan 1999 Tom Spindler dogcow@isi.net
Update 2002-05-30
The following tests fail on 5.8.0 Perl in BeOS Personal 5.03:
t/op/lfs............................FAILED at test 17
t/op/magic..........................FAILED at test 24
ext/Fcntl/t/syslfs..................FAILED at test 17
ext/File/Glob/t/basic...............FAILED at test 3
ext/POSIX/t/sigaction...............FAILED at test 13
ext/POSIX/t/waitpid.................FAILED at test 1
The reasons for the failures are as follows:
o The t/op/lfs and ext/Fcntl/t/syslfs failures indicate that the LFS (large file support, files larger than 2 gigabytes) doesn't work
from Perl (BeFS itself is well capable of supporting large files). What fails is that trying to position the file pointer past 2 giga-
bytes doesn't work right, the position gets truncated to its lower 32 bits.
o The op/magic failures look like something funny going on with $0 and $^X that I can't now figure out: none of the generated pathnames
are wrong as such, they just seem to accumulate "./" prefixes and infixes in ways that define logic.
o The Glob/t/basic indicates a bug in the getpw*() functions: they do not always return the correct user db entries.
o The sigaction #13 means that signal mask doesn't get properly restored if sigaction returns early.
o The waitpid failure means that after there are no more child processes, waitpid is supposed to start returning -1 (and set errno to
ECHILD). In BeOS, it doesn't seem to.
Disclaimer: I just installed BeOS Personal Edition 5.0 and the Developer Tools, that is the whole extent of my BeOS expertise, so please
don't ask me for further help in BeOS Perl problems.
jhi@iki.fi
perl v5.8.0 2003-02-18 PERLBEOS(1)