05-25-2009
You are using the same code given for another situation. Devtakh has given you a explanation how the code works.
If it's so urgent for you, why don't you try to understand how it works and try to adjust the code?
You are expecting us to do the work for you, but that's not the way it works. We are all volunteering our time and expertise, we can give you the direction you need, but you have to put some effort into solving your own problem.
Regards
8 More Discussions You Might Find Interesting
1. Shell Programming and Scripting
I have a file like this I have to
I have input file this , I want to give the out put in the below
input file
(NARAYANA 1 ENDING AT (100, 16383)
,NARAYANA 2 ENDING AT (100, 32766)
,NARAYANA 3 ENDING AT (100, 49149)
,NARAYANA 4 ENDING AT (100, 65535)
,NARAYANA 5... (8 Replies)
Discussion started by: LAKSHMI NARAYAN
8 Replies
2. Shell Programming and Scripting
Hi All,
I joined today in this forum to have all of your help.
I have a Big requirement, pls. help me to resolve.
I'm using HP-UX 11.23. I need a shell script for the following requirement.
I have a file (nodes.txt) that contains 1000 nodes.
I'm running the following command:... (3 Replies)
Discussion started by: ntgobinath
3 Replies
3. Shell Programming and Scripting
Hi
I have a scenario where i have a file name as
abcd_To_hfgh.20090456778_1.dat
I will get the filename as parameter
and i need a string in between second _ and first . i.e i need hfgh in this case.
Please help me with the script. This may not be awk script even if it can be... (2 Replies)
Discussion started by: dsdev_123
2 Replies
4. Shell Programming and Scripting
1.Write an automated shell program(s) that can create, monitor the log files and report the issues for matching pattern.
(i) Conditions for creating log files.
Log file is created with date (example 2010_03_27.log). If the log file size is 10 Mb for a particular day then automatically the log... (3 Replies)
Discussion started by: praveen12
3 Replies
5. Shell Programming and Scripting
Hi All,
I am unable to write the script for the below requirement.
Requirement:
Main table dir_ancillary table contain three column "dir_ancillary.table_name"," dir_ancillary.text_file_name ", "dir_ancillary.Include" .
This dir_ancillary contain undefined tables in the column... (2 Replies)
Discussion started by: Vineeta Nigam
2 Replies
6. Shell Programming and Scripting
Hi,
I am not so familiar with shell Script but I have a task in hand. So, here it goes:
There is a file details.txt in the server where the below details are stored:
Name Country D M Acc.No.
sameer India 30 july sscc-errttt-q
random US 20 july pecc-ttt4-s
Deb India 31... (3 Replies)
Discussion started by: neel87
3 Replies
7. UNIX for Dummies Questions & Answers
Please help in creating script for below requirement.
I will be running 1 command and will get below entries in a text file say file44.txt
*******************************
DFDL1005 06:30 00:05
ABFL2003 10/22 01:10
CFTL1256 10/24 00:10
10/25 09:20 PM
********************************
.... (3 Replies)
Discussion started by: Vinay_3308
3 Replies
8. Shell Programming and Scripting
I am trying to write a shell script which takes an input file as an arguement in the terminal e.g. bash shellscriptname.sh input.txt. I would like for the file to be read line by line each time checking if the .txt file contains certain words or letters(validating the syntax). If the line being... (1 Reply)
Discussion started by: Gurdza32
1 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)