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. seanken

    SET for a local var

    Thanks guys. These should sort me out.
  2. seanken

    SET for a local var

    Thanks Despierto. I had this in mind as a last resort. There must be a way to populate the @StartDate var though, in the same way as a dynamic SQL string can be built and run....I was thinking along the lines of SET @StartDate = N'@EL' + @iCounter + N'A' Doesn't work, obviously, or I...
  3. seanken

    SET for a local var

    Hi all, The 'SEARCH' functionality doesn't seem to be working on the site so if my question has already been asked, apologies! I have a table that has a number of date fields names 'EL1A', 'EL2A' and so on up to EL46A. I have fetched the row back via a cursor and am now attempting to perform...
  4. seanken

    How NOT to motivate your staff

    my latest: (1) 'Hi Mr Manager. I'd like to give some of the junior guys training in unix after hours. I need to use the training room.' 'We have tight budgets 'till the end of the year. What does the company gain by this?' 'Ehhh, free training, trained resources, my career progression....'...
  5. seanken

    Solaris 9 disk setup

    Yes, by striping I mean partitioning using the format command. Our HP has veritas on it but, never having been involved in a server setup, I never realised it's significance until recently. I'll have a run through of the sun doco on the matter.
  6. seanken

    Solaris 9 disk setup

    Right. So the reason is purely for /etc being in / is for the single user mode then? That makes sense but I never really thought of it. As the man says, it's better to be making these mistakes on a test server than coming across them o nthe real thing. Thanks, Sean
  7. seanken

    Solaris 9 disk setup

    I was messing around yesterday with the format commant and assigning new partitions for a java mountpoint that I wanted to create. This seems fine where you want to create a new mountpoint but I think that a reinstall is in order, as you say, for the /var, /usr....mountpoints. Are /opt, /usr...
  8. seanken

    Solaris 9 disk setup

    If I mv the /var to the 2nd disk, surely I would have to mv it to /export/home/var? Is this what you mean? I would prefer to have a 'cleaner' setup, i.e. only one var directory @ /var rather than a link to /export/home/var. Is this possible or would a rebuild be in order?
  9. seanken

    Solaris 9 disk setup

    Hi, Recently I came into ownership of a solaris server with a pretty low spec. I am having trouble with the disk setup on it. There are 2 disks which I would like to 'rearrange' a bit. Firstly, a df -k produces: Filesystem kbytes used avail capacity Mounted on...
  10. seanken

    /dev/vg01 problems

    Hi, When I try to 'll' the contents of two directories mounted on /dev/vg01, the system hangs. I can do a simple 'ls' and see the contents. A bdf also hangs whereas a 'df -k' provides: /mnta1 (/dev/vg01/lvabin ) : 5991751 total allocated Kb 4495679 free...
  11. seanken

    Sizeof operator

    Sorry, meant 11 but typed 10. Thanks for the explaination. Makes sense when someone shows you how.
  12. seanken

    Sizeof operator

    Hi, Can anyone tell me why the second printf returns the sizeof(record) as 4 whereas the first returns 10 as I would expect? Thanks #include <stdio.h> #include <string.h> void read_input(FILE *ifile, char *record); main(){ FILE *ifile; char record[10+1]...
  13. seanken

    Hints, Tips, etc

    Hi, Does anyone have any useful shortcuts/tips/etc for HP, etc? I have found the w! to save ro files when root pretty useful, especially when editing a ro file without realising it! I seem to recall a way to vi multiple files (something like vi s* to edit all files beginning s) but can't...
  14. seanken

    GDB question

    I'm a helpful sort of guy!! Thanks, Sean
  15. seanken

    GDB question

    Hi All, Second question in 2 days...getting my money's worth. I (and more worringly, my team lead) think that its time I progressed from inserting printf's to debug code to using a proper debugging tool. From the dim & distant past, I remember using dbx but since I don't have that on my...
  16. seanken

    Bitwise shift question

    mmmm...this rings a bell. I heard one of the switch guys mention something similar to this a while back. Makes sense to shift now. Again, thanks for the help. Sean
  17. seanken

    Bitwise shift question

    Matt, Yep, have the theory now. Thanks. What was/is throwing me is why would anyone ever want to use something like this. If the 16 bit word coming from the switch (i'm in telecomms, more's the pity!) is, for example, 17 & 21 (or 11 & 15 in Hex format) I would have thought that the word...
  18. seanken

    Bitwise shift question

    Hi Matt, You'll have to spell it out, I'm afraid. Being from an Oracle background, this C will be giving me a pain for a while yet. Seems to me that we have 16bits (8+8) in Hex format on the incoming file. The first 8 are read into bHigh and the second into bLow, then I get lost. Sean
  19. seanken

    Bitwise shift question

    Hi All, I have this piece of C code. Any idea of why it uses a bitwise shift ('<<' at the bottom of this note)? The file contains hexidecimal records... The wvar seems to be 1 char/int returned to the calling routine. Is it some way to identify the bytes on the record to return? I'm...
  20. seanken

    a text file and a binary file

    Hi sahaguna, a simple one, but make sure you have the correct permissions to create a file in the subdir on the server. Sean

Part and Inventory Search

Back
Top