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...
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...
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....'...
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.
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
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...
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?
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...
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...
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]...
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...
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...
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
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...
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
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...
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.