Search Results

Search: Posts Made By: mbb
4,419
Posted By mbb
FTP Perl Script File Size Mismatch.
Hello,

I've written a Perl script that copies a set of files from one server to another.

Prior to transferring a file the script gets the file size from the source system and compares this to...
Forum: Programming 12-16-2005
4,250
Posted By mbb
Yay, sysfs is indeed in the man pages and...
Yay, sysfs is indeed in the man pages and describes 3 variants.

I had already searched through the libraries using ar, and found sysfs.o in libc.a! Within the same library archive are the...
Forum: Linux 12-15-2005
2
2,591
Posted By mbb
You could always put quotes around your arguments...
You could always put quotes around your arguments e.g.

sample.sh "123" "1231&" "12"

To be absolutely sure 'escape' special characters:

sample.sh "123" 1231\&" "12"

If you are trying to...
Forum: Programming 12-15-2005
4,250
Posted By mbb
Like this? /usr/bin/gcc -DTRACE_ON...
Like this?


/usr/bin/gcc -DTRACE_ON -I/home/app/oracle/product/10.1.0/Db_1/precomp/public
-I/home/mb/build/dev/Include -c ec2pc.c

/usr/bin/gcc -o ec2pc ec2pc.o -L...
Forum: Linux 12-14-2005
3,681
Posted By mbb
ESQL/C to Oracle Conversion Tools.
The oracle site has such a tool for several platforms but Linux :mad:

Would anyone be able to point me in the direction of an Informix ESQL/C to Pro/C convertor that will run on Linux?

Thanks
Forum: Slackware 12-14-2005
125,327
Posted By mbb
Yes, totally agree it is the least reliable...
Yes, totally agree it is the least reliable source, but still a possibility if all else fails.
Forum: Programming 12-13-2005
4,250
Posted By mbb
Unable to reference sysfs on Linux.
I am porting C code to a linux system but I am unable to link a call to the sysfs function.

An excerpt from my code is:


if (fstat(fileno(TrCtl.Fp), &fsstat) != -1)
{
(void) sysfs(1,...
Forum: Slackware 12-13-2005
125,327
Posted By mbb
Thanks all. Here is another way from my...
Thanks all.

Here is another way from my system (but may not always be effective):

>cat /etc/issue
Red Hat Enterprise Linux AS release 3 (Taroon)
Kernel \r on an \m

This is the banner which...
Forum: Slackware 12-07-2005
125,327
Posted By mbb
Determine Linux Version.
Apart from the obvious, uname command, is there anyway to determine which Linux distribution and version of the distribution has been installed?
Forum: Programming 10-31-2005
1,648
Posted By mbb
Is there an FAQ on this kind of thing somewhere...
Is there an FAQ on this kind of thing somewhere round here? :confused:

I would say learn on either Pascal or C. They have features you will find in most other languages (typed variables, if...
Forum: Programming 10-28-2005
2,114
Posted By mbb
Your other post implies you may be passing back a...
Your other post implies you may be passing back a string.

You may prefer to use strcpy like so:

char CountryName[XX*];

strcpy(CountryName, pcCityIdToCountryName(..................) );
...
Forum: Programming 10-28-2005
6,548
Posted By mbb
Use the 'free' command to free memory assigned by...
Use the 'free' command to free memory assigned by the malloc command.

if you use the man command e.g.

man malloc
man free

it should list associated comands under a section called 'see...
Forum: Programming 10-18-2005
5,706
Posted By mbb
Might be an interview question ... The...
Might be an interview question ...

The program might do anything from print "Hello world" to core dump (or GPF or whatever).

You won't really know until you compile it or run it and even then...
Forum: Programming 10-13-2005
7
13,624
Posted By mbb
My guess is that sizeof cannot work out the size...
My guess is that sizeof cannot work out the size of the struture and is passing back 0, representing a null or undetermined value or an error condition.

What does your documentation for sizeof say...
15,345
Posted By mbb
Sorry, but your question still seems a little...
Sorry, but your question still seems a little open ended. Lets start with identifiying some of the details of your problem:

1) Is your file a binary file, or ASCII file?
2) What identifies a...
Forum: What is on Your Mind? 08-11-2005
17,691
Posted By mbb
MBB is simply my initials, except I only have a...
MBB is simply my initials, except I only have a first name and surname. On the advice of my great uncle I adopted three initials for the sheer hell of it!

Also have been known to go by the...
Forum: Programming 08-10-2005
4,049
Posted By mbb
Memory problems are always a bugger to find,...
Memory problems are always a bugger to find, usually because the point of failure is not the fault, the fault lies elsewhere in your code.

One thing you can try - which is rather crude - is to...
3,085
Posted By mbb
Spaces are significant when using test command...
Spaces are significant when using test command ...

if [ -f "$filename" ]
then
...
fi

Note the space between filename and ]
Forum: Programming 07-20-2005
4,308
Posted By mbb
Sorry to hear that you cannot stop the querying...
Sorry to hear that you cannot stop the querying process. This will limit your options.

Insert cursors are a way for your Esql/C process to buffer the inserts before they are committed to the...
8,564
Posted By mbb
I have had a similar problem when I started my...
I have had a similar problem when I started my new job on an Irix system. Turns out there is no ksh on my system - it is just a symbolic link to sh.

I am guessing my sh cannot support both...
Forum: Programming 07-19-2005
13,171
Posted By mbb
Err well, typically you would identify a line by...
Err well, typically you would identify a line by the presence of the '\n' character.

So, open the file. Go the end of the file. Work backwards towards the start of the file, counting the number...
Forum: Programming 07-19-2005
4,308
Posted By mbb
Sorry for the delay. Informix is right up my...
Sorry for the delay. Informix is right up my street, so I can be more specific.

Disabling the transaction logging would mean that the inserts are not logged in the logical logs. If something...
Forum: Programming 07-15-2005
4,308
Posted By mbb
Some more info might help, like which database...
Some more info might help, like which database are you using? e.g. Informix, Oracle, SqlServer etc.

One thing is for sure - if you have a database table it will be quicker to load to if the table...
8,127
Posted By mbb
Have you confirmed that the final script in the...
Have you confirmed that the final script in the job is actually completing?

The nohup should work, so I can only suppose that the timeout is being initiated by Oracle. The error message...
5,541
Posted By mbb
You could do this in awk, but that may not be...
You could do this in awk, but that may not be necessary. It is possible to do this in sh/ksh as well.

When you say 'better' what exactly do you mean? A solution in awk is perfectly valid.
Showing results 1 to 25 of 104

 
All times are GMT -4. The time now is 07:04 PM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy