Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Search results for query: *

  • Users: mjm22
  • Order by date
  1. mjm22

    Passing Parameters

    Hi I have a wrapper script that I call, passing a number of parameters ... wMFM.sh -p 83 -w '20041001 18550900' -r 83 '-a -nls _.UTF8' parameter names -p, -w and -r are always present. -a is a list of additional parameters that may be used. If I echo the count of parameters I get 7 since the...
  2. mjm22

    setting an ENV VAR in a one liner?

    Hi I am looking to set an environmental varibale in a one liner that I will present to the operating system from a program. I need to find the 32 bit CRC checksum of a file, the UNIX for this would be... cksum file.ext Simple enough, except that this returns several columns of data, I know...
  3. mjm22

    Whitespace Ignored when reading variables

    Ah well, actually I missed some lines out from the above post. In between the reading of the header line and the writing to the other file I also do some additional verification and validation on the contents of COMP_LINE before writing it to the file. Otherwise yes, I could have done it like...
  4. mjm22

    Whitespace Ignored when reading variables

    Hi I use the below commands in a script to extract the header line from a file, remove the first couple of zeros and then write the value to another file. hdrLine=`head -1 $REF_FILE` echo $hdrLine | sed s/"00"//g | read COMP_LINE echo $COMP_LINE >> $COMPLETE_FILE The problem I have is that...
  5. mjm22

    Passing Arrays in AWK script / Calling SQL from AWK

    Hi I have an AWK script within a unix script. Within the AWK script I wish to evaluate the value of a price column $5 based on the value in a rec type column $4 to try to determine if the price is equal to the minimum price for this call type. I have an Oracle table that stores minimum prices...
  6. mjm22

    FTP'ing from a Unix Script

    Thanks, that works fine. Not quite sure why the first method didn't work though. Cheers anyway. Mike
  7. mjm22

    FTP'ing from a Unix Script

    I wish to run some ftp commands from a shell script. I thought that this would be easily done with the following... ++++++++ ftp -inv $IP <<-ENDFTP >$DIALOG user $USER $PASSWORD cd /home/user1/log bin put $REF_FILE $TO_REF_FILE bye ENDFTP...
  8. mjm22

    Unix Variables in AWK script

    Thanks Had some trouble getting the -v FILEOUT=&quot;$TEMPSQL&quot; working, but then tried nawk instead of awk and it was fine after that. Thanks for the help. Mike
  9. mjm22

    Getting Return Values from PL/SQL

    Hi I have a unix script which produces the following pl/sql file on the fly before running it... set serveroutput on DECLARE errValue NUMBER; BEGIN errValue := IPGPPP.insertAuditTrailRecords(1,0,'&&1','&&2','&&3','&&4',6,1639054); END; / exit; I want to return the errValue to the Unix...
  10. mjm22

    Unix Variables in AWK script

    Hi I have a requirement to do the following within a Unix script: read an input file and for certain lines get a value from the line to sum it ( after using sed to remove the quotes from the values). Then after all lines have been read I write an audit record to an oracle database by calling a...

Part and Inventory Search

Back
Top