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 strongm 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: *

  1. pauljt

    tr cmd - how to use sed / awk instead to insert cntl chars

    Hi, For a 'script' I have put together I needed to get the PATH variable - and convert the contents of it from: /usr/dt/bin:/usr/openwin/bin.... etc to a file... /usr/dt/bin /usr/openwin/bin I have achieved this using: echo $PATH | tr ":" "\012" This is absolutely fine, but how could you...
  2. pauljt

    Testing if a table is empty

    thanks for the input guys.. based on the latter 'if exists' concept - I have seen in practice that this is faster. this is good as this will be part of a process which polls the database regularly.
  3. pauljt

    Testing if a table is empty

    Is there an alternative way to testing if a table is empty other than using select count(*) from ..........? Basically I am looking for a potentially quicker test, as select count(*) from.... might take a fair bit of time if the table is quite heavily populated...
  4. pauljt

    UNLOAD and RELOAD!

    Here is some information that may help. To create an identical structure of the database, you could use Sybase Central, right click over the name of a database: and select Generate Create Database DDL - to get the SQL to build the database - which you can alter to use different devices...
  5. pauljt

    Sun Hardware Comparison

    thanks for the information... E220R seems the better option..
  6. pauljt

    Sun Hardware Comparison

    I have 2 machines and can anyone help me establish which is the better machine? Maybe by pointing me to a good web page? I have available a Sun Ultra 5/10 with 1 UltraSparc IIi processor running at 440Mhz compared with a Sun Enterprise E220R with 1 UltraSparc II processor running at...
  7. pauljt

    Is there... an easy way of kicking off an NT batch from unix?

    I have a NT 'batch' which cannot be executed until some unix batches have finshed. Ideally, I would like to be able to kick off the NT batch from the unix script - anyone know of a simple method of doing this?? It's solaris 2.8 / windows 2000.
  8. pauljt

    looking for ideas to speed up SQL

    Have a piece of SQL: select INSTNUM,'',IDXCOD,INSTFREE,INSTFREE2,YLD from HIST h where DAT = (select max(DAT) from HIST h2 where h.INSTNUM = h2.INSTNUM) go which runs fine, albeit a bit slow. An unique clustered index exists for INSTNUM, DAT The subquery uses this, the outer query does...
  9. pauljt

    script with loop runs slow

    For me, the 1st solution just returns nothing at all.
  10. pauljt

    script with loop runs slow

    I'll revisit the suggestion and let you know!
  11. pauljt

    script with loop runs slow

    Thanks for replies,,,, Couldn't seem to get the 1st and 3rd suggestions to work. (using ksh) However this works mostly: awk ' /TESTDATA/ {print prev} {prev=$0} ' $scripthome/sp_text2.tmp except, rather than searching for TESTDATA each time, the test will be for different strings. I...
  12. pauljt

    script with loop runs slow

    Hi, I've thrown a script together which works ok, but it runs pretty slow. Without going into too greater detail - it searches all the stored procedures in a sybase database for a piece of text. (ie: a table name). If you imagine the following example file exists by the time the script gets to...
  13. pauljt

    jpg not displaying in applet once on web

    Like a lot of others, I am new to java/applets. I have written a basic applet which rolls through a number of jpg pics at the click of a mouse. It works fine when on my pc along with calling html code. The html, class files and jpg files are all in the same directory. The jpg files are loaded...
  14. pauljt

    Limit rows returned

    That works fine, great. Basically I am working with an unfamiliar database at present and this helps quickly look at sample data.
  15. pauljt

    Limit rows returned

    Additionally: I am accessing the database via ODBC drivers and WinSQL.
  16. pauljt

    Limit rows returned

    What command can I issue to limit the number of rows returned from a DB2 database? Thanks
  17. pauljt

    Installation problem on Solaris 2.8

    Following install instructions, eg: shell> groupadd mysql shell> useradd -g mysql mysql shell> cd /usr/local shell> gunzip < /path/to/mysql-VERSION-OS.tar.gz | tar xvf - shell> ln -s full-path-to-mysql-VERSION-OS mysql shell> cd mysql shell> scripts/mysql_install_db ((added...
  18. pauljt

    Error Message when using pkgadd

    I was told by the guy who did the reboot it was in single user mode but he didn't sound too convincing to me. Would this be a likely cause?
  19. pauljt

    Error Message when using pkgadd

    We have had to restore the machine as it would not boot up! The output we NOW have from that command is: $ ldd -r /usr/sadm/install/bin/pkginstall libadm.so.1 => /usr/lib/libadm.so.1 libnsl.so.1 => /usr/lib/libnsl.so.1 libsocket.so.1 =>...
  20. pauljt

    Error Message when using pkgadd

    When attempting to add a unix patch, we have received the following 'nasty' error message. We now get this every time we run pkgadd. Has anybody come across this before/any ideas how to resolve this problem? ## Executing checkinstall script. ld.so.1: /usr/sadm/install/bin/pkginstall: fatal...

Part and Inventory Search

Back
Top