I started with that Writeln atricle, thats how this process began.
I haven't seen that other article, so I will give that a shot.
I appreciate you sticking this out to help me.
I see it in a new window that flashes up and immediately closes. stdout/stderr both do same thing.
Somehow I need the stdout/stderr of the parent process I guess.
I want to output the command line parameters & its help to the console that opened it.
That way they can see the commands and correct them as needed.
Normally, yes a TMemo is a great way, but for this, it is not what I am after.
There are a lot of command line parameters and it is very helpful...
How do I output text to the same console that started the process?
If I use:
void writeln(String text)
{
// fprintf(stderr, "%s\n", text.c_str());
static HANDLE handle;
if (!handle) {
AllocConsole();
handle = GetStdHandle(STD_OUTPUT_HANDLE);
}
text += "\n"...
What a stupid concept!
WTF was RH thinking?!
[thumbsdown] Jeez, lets see how many places we can hide an IP. [thumbsdown]
Thanks for the help all.
I changed all occurances of 192.168.0.132 in /etc to the proper external IP. This fixed it.
What is the difference between the following locations:
bad ip:
/etc/sysconfig/networking/devices/ifcfg-eth0
/etc/sysconfig/networking/profiles/default/ifcfg-eth0
good ip:
/etc/sysconfig/network-scripts/ifcfg-eth0
Other than the obvious.
I can change them, but I need to understand the...
I am running RedHat v9
I setup a server to be a mail server and used an internal IP when I set it up in house.
I have since moved it to our hosted environment and have tried to set the IP to the new public IP.
This will take, but be forgotten on subsequent reboots.
I have tried using RH's setup...
On a client's box that we are trying to get setup to talk to the internet so we can ssh into the box, ping is acting wonky.
# ping 192.9.206.201
PING 192.9.206.201 (192.9.206.201): 56 data bytes
64 bytes from a3684 (192.9.206.9)...
Thanks, I found my answer that way.
To share it with others:
To find real, as in non-linked files use:
find with an option -type f
so to look in current dir and no lower for "real" files:
find . -type f -level 0 -print
Is there a way in sco 5.0.x to copy just all regular, non-linked files?
I am working on a script for copying stuff over for my clients when they upgrade and this would help me not miss files.
I want to use conditional compilation to compile my code for a 2nd customer type from the same code base so I don't have to make 2 changes everytime.
I get that part fine.
What I don't get or see how to do is to handle the forms which may be different. How do I conditionally handle them properly?
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.