Sponsored Content
Top Forums Shell Programming and Scripting don't know how to implentment as unix sh script Post 302157097 by ttivanwan@yahoo on Thursday 10th of January 2008 05:09:19 AM
Old 01-10-2008
don't know what happen

I am new for sh script , i have write some code but cann't compile , please help for seeing what problem? It seem to cannot read another file in awk and I don't confirm....

"XXXX.wip.sh" 24 lines, 471 characters
>findcust.wip.sh
Syntax Error The source line is 7.
The error context is
while >>> read <<< line
awk: 0602-502 The statement cannot be correctly parsed. The source line is 7.
Syntax Error The source line is 8.


awk -v '
BEGIN {FOUND = "N";}

{if (match($0, /\!\$....../))
{checkno = substr($0,3,6);
FOUNDINCUST = "N" ;
while read line
do
{if (FOUNDINCUST="N") && (checkno == $line)
FOUND = "Y";
FOUNDINCUST ="Y";
print $0 ;
}
done < "custfilelist.dat" ;
}
}
{if (match($0, "%%RECORDEND"))
FOUND = "N";}
{if (FOUND =="Y")
print $0 >> "atest.dat" ;}
{if (FOUND =="N")
print $0 >> "btest.dat" ;}
' $SOURCEFILE/TEST*.dat
 

9 More Discussions You Might Find Interesting

1. UNIX for Dummies Questions & Answers

I want to cheaply build my own Linux/Unix PC, but don't know where to start

I want to cheaply build my own PC that will run the latest versions of Linspire, Fedora Core, FreeBSD and Solaris, but I don't know where to start. This PC doesn't have to be particulary fast. It's video performance need not be top notch, however, sound quality and sound performance must rock!... (4 Replies)
Discussion started by: Mr. Nice Guy
4 Replies

2. UNIX for Dummies Questions & Answers

which unix?? <donīt know where to post>

Iīm struggling to find a system I like and thatīs not to overwhelming.. Iīve been using Ubuntu/Linux and itīs allright except that itīs pretty buggy and boots extremely slow. Iīm in need of a system that offers good programming features, simple or no x server, fast to boot and STABLE. Donīt care... (2 Replies)
Discussion started by: riwaTNT
2 Replies

3. UNIX for Dummies Questions & Answers

I don't want to go to jail. so I want to start using unix

I use Mac OSX and have been given all of my video editing software... illegally. I don't want to use it anymore and heard that Unix was the way to go. So that is why I am here. What video editing software is out there for Unix. I think I have Unix. Do I? I am sorry and if all anyone can... (0 Replies)
Discussion started by: moz1979
0 Replies

4. Programming

Why I don't have CC1 in my Unix?

gcc works find in my Unix. But when I want to use cc1, system reports: "bash: cc1: command not found". Any clue? Thank you! (2 Replies)
Discussion started by: meili100
2 Replies

5. Shell Programming and Scripting

script don't stop

Hello everybody! I am new to this and I am trying to change a script in an open source program that plots some offset vectors and then calls a postscript viewer. I have commented away the call for the postscript viewer but somehow the script doesn't return to the shell prompt. I cant figure out... (3 Replies)
Discussion started by: larne
3 Replies

6. UNIX for Advanced & Expert Users

don't understand the unix script

if {"$my_ext_type" = MAIN]; then cd $v_sc_dir Filex.SH $v_so_dir\/$v_fr_file Can somebody tell me what does this suggest. I am pretty new to unix and I am getting confused. What i understood from here is If we have a file extension name as MAIN which we have then we change the directory to... (1 Reply)
Discussion started by: pochaman
1 Replies

7. Filesystems, Disks and Memory

Why we don't need to defrag UNIX FS?

Hi I am wondering which is the reason why there is no need to defrag file system in UNIX and Linux, and in Windows I must defrag it ? (7 Replies)
Discussion started by: solaris_user
7 Replies

8. UNIX for Dummies Questions & Answers

Change unix permission when I don't own the file

Hi, A file is transferred from a Windows server(say username : user1) to Unix server via ftp. In unix, the permission of the file for a user, say user2 will be "-rw-r-----". Since the user1 is the owner of the file, user2 is not able to change the file permission using chmod. Is there... (5 Replies)
Discussion started by: merin
5 Replies

9. Shell Programming and Scripting

A shell script to run a script which don't get terminated and send a pattern from the output by mail

Hi Guys, I am very new to shell script and I need your help here to write a script. Actually, I have a script abc.sh which don't get terminated itself. So I need to design a script to run this script, save the output to a file, search for a given string in the output and if it exists send those... (11 Replies)
Discussion started by: Sambit Sahu
11 Replies
dmb(4)							     Kernel Interfaces Manual							    dmb(4)

Name
       dmb - DMB32 communications multiplexor

Syntax
       device dmb0 at vaxbi? node? flags 0x????
	    vector dmbsint dmbaint dmblint

Description
       A  DMB32 device provides eight asynchronous communication lines with modem control.  The device driver also supports a connection to a line
       printer through the line printer port of the DMB32.

       Each line attached to a DMB32 serial line port behaves as described in Input and output for each line may independently be set  to  run	at
       any of 16 speeds.  See for the encoding.

       Bit  i of flags can be specified for a to say that a line should be treated as a hardwired connection, with carrier always present.  If bit
       i of flags is not set, the line operates under full modem control.  Modem lines will operate in accordance to the CD (carrier detect),  DSR
       (data  set ready) and CTS (clear to send) leads.  Thus, specifying ``flags 0x0004'' in the specification of would cause line 2 on the DMB32
       to be treated as hardwired, with carrier always present.  In this example, the remainder of the lines will be modem control lines.

Restrictions
       The DMB32 provides a synchronous port, but this is not supported by the driver.

Diagnostics
       dmbinit: async lines unavailable
       This message is produced at system boot time, if the DMB32 fails its internal self test, indicating that the asynchronous lines have failed
       to configure.

       dmbinit: printer port unavailable
       This message is produced at system boot time, if the DMB32 fails its internal self test, indicating that the printer port failed to config-
       ure.

       dmb%d: fifo overflow
       The character input fifo overflowed before it could be serviced.  This can happen if the CPU is running with elevated priority for too long
       a period of time.  Overflow errors can indicate that configuration constraints have been reached.

       dmb%d: DMA Error. tbuf = 0x%x
       A  DMA  output transfer failed.	This can be caused by a memory error or an invalid pte (page table entry).  For a description of the error
       code in the ``tbuf'' register, see the DMB32 documentation.

       dmb%d: DMB Hardware Error. TX.DMA.START failed
       The failed to clear the start bit.  Normally, this is cleared to signal that a DMA transfer has completed.

       dmb%d: Modem Error. tbuf = 0x%x
       Indicates a problem with a modem or its cable.  For a description of the error code in the ``tbuf'' register, see the DMB32 documentation.

       dmb%d: Internal Error. tbuf = 0x%x
       Indicates that the DMB32 detected an internal error.  For a description of the error code in the ``tbuf'' register, see the DMB32  documen-
       tation.

       hfBdmb%d: uio move error
       An error occurred when copying a printer buffer from user space to system space.

       dmbsint
       The  unsupported  synchronous port of the DMB32 interrupted because of a problem.  Check your interrupt vectors for a conflict with another
       device.

Files
       (modem lines only)

See Also
       tty(4), MAKEDEV(8), dmbsp(4)

																	    dmb(4)
All times are GMT -4. The time now is 10:53 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy