×
UNIX.COM Login
Username:
Password:  
Show Password






👤

Showing results 1 to 25 of 500
Search took 0.16 seconds.
Search: Posts Made By: Corona688
Forum: Programming 7 Hours Ago
Replies: 6
Views: 282
Posted By Corona688
The risk of strcpy is this: char buf[8]; //...

The risk of strcpy is this:

char buf[8]; // Only room for 8 characters
char very_important_variable_touch_and_the_world_explodes=42;

// More than 8 characters, where does the rest go?...
Forum: Programming 10 Hours Ago
Replies: 6
Views: 282
Posted By Corona688
Stop that! That's not how you use strncpy! And...

Stop that! That's not how you use strncpy! And also not why people use it.

Blindly using strncpy because people call strcpy "bad" is worse than just using strcpy in the first place. You are not...
Forum: Programming 4 Days Ago
Replies: 6
Views: 282
Posted By Corona688
None of these do anything weird with newlines at...

None of these do anything weird with newlines at all.

Blindly using anything without knowing what it's for or what it does will cause problems, as it has here. strcpy would have worked.


...
Forum: Shell Programming and Scripting 4 Days Ago
Replies: 17
Views: 289
Posted By Corona688
Do you have GNU sed on your system? (gsed) Or...

Do you have GNU sed on your system? (gsed) Or perl?
Forum: Shell Programming and Scripting 4 Days Ago
Replies: 17
Views: 289
Posted By Corona688
Your reports are inconsistent. It's possible...

Your reports are inconsistent. It's possible that your version of sed doesn't support the extended syntax -- but then it shouldn't ever have worked at all, not just missed a few things inside ><...
Forum: Shell Programming and Scripting 4 Days Ago
Replies: 17
Views: 289
Posted By Corona688
Posting "Does not work" without explanation does...

Posting "Does not work" without explanation does not help you or anyone. If a command does not work for you, please show the exact circumstances you used it, and the exact error or malfunction you...
Forum: Shell Programming and Scripting 4 Days Ago
Replies: 17
Views: 289
Posted By Corona688
Ah, I think I see: I specified "beginning of...

Ah, I think I see:

I specified "beginning of line or space", not "beginning of line, space, or >". I can specify "beginning of line or non-numeric", "end of line or non-numeric" instead.

How...
Forum: Shell Programming and Scripting 4 Days Ago
Replies: 17
Views: 289
Posted By Corona688
That it worked partially is very strange. Show...

That it worked partially is very strange. Show the input you had, the output you were expecting, the output you got, and the exact code and regex file you used.
Forum: Shell Programming and Scripting 4 Days Ago
Replies: 17
Views: 289
Posted By Corona688
Remove the 'single quotes'

Remove the 'single quotes'
Forum: Shell Programming and Scripting 4 Days Ago
Replies: 17
Views: 289
Posted By Corona688
Then I would suggest putting the regex into a...

Then I would suggest putting the regex into a file.
Forum: Programming 4 Days Ago
Replies: 1
Views: 1,037
Posted By Corona688
Because they're stateful: The server doesn't...

Because they're stateful: The server doesn't just acknowledge receiving it, it must perform the command and retrieve the answer before the command returns.
Forum: What is on Your Mind? 4 Days Ago
Replies: 14
Views: 399
Posted By Corona688
Good.

Good.
Forum: Shell Programming and Scripting 4 Days Ago
Replies: 17
Views: 289
Posted By Corona688
There are two problems with your regex. "." is a...

There are two problems with your regex. "." is a special character meaning "any single character", ergo, the regex "192.168.0.126" would also match "1912168Q0126"!

Fixing your particular problem...
Forum: What is on Your Mind? 4 Days Ago
Replies: 14
Views: 399
Posted By Corona688
I love it! The "remember me" checkbox has...

I love it!

The "remember me" checkbox has disappeared, however. Is it no longer necessary?
Forum: Solaris 1 Week Ago
Replies: 10
Views: 395
Posted By Corona688
Please answer the other relevant questions -...

Please answer the other relevant questions - internal drive, external drive, how is it mounted.
Forum: UNIX for Beginners Questions & Answers 1 Week Ago
Replies: 9
Views: 498
Posted By Corona688
To repeat: pushd is not capable of doing that. ...

To repeat: pushd is not capable of doing that. You really are barking up the wrong tree with this one. BASH is not a network browser.

Try net use. That is one of the only things capable of...
Forum: Ubuntu 1 Week Ago
Replies: 4
Views: 685
Posted By Corona688
To repeat: Samba serves shares. I don't...

To repeat:

Samba serves shares. I don't know what purpose putting it in fstab would serve.

Your question remains too large and vague to effectively answer. "how do I do everything" is not a...
Forum: Ubuntu 2 Weeks Ago
Replies: 4
Views: 685
Posted By Corona688
Samba is no longer needed for as many things as...

Samba is no longer needed for as many things as it used to be. It's still the go-to to serve shares, but native client support has popped up in many operating systems. In Linux you can do

mount...
Forum: What is on Your Mind? 2 Weeks Ago
Replies: 36
Views: 1,014
Posted By Corona688
I may be in the minority here, but I'm not sure I...

I may be in the minority here, but I'm not sure I like it - yet. It's a good idea, and the line numbering is especially helpful, but the feature needs to be thought through.

This disrupts our...
Forum: Shell Programming and Scripting 2 Weeks Ago
Replies: 23
Views: 1,083
Posted By Corona688
GOT IT! If you want to send to nc more than...

GOT IT! If you want to send to nc more than once, you always have to do so from the same source port and IP. Otherwise nc will think you're a different sender and ignore it. And the source port is...
Forum: Shell Programming and Scripting 2 Weeks Ago
Replies: 23
Views: 1,083
Posted By Corona688
What exactly does this cron job do -- kill the...

What exactly does this cron job do -- kill the sender, then restart it? nc doesn't like that. Even in UDP mode, it's not connectionless - it knows who it's talking to, knows when it dies, and won't...
Forum: UNIX for Beginners Questions & Answers 2 Weeks Ago
Replies: 9
Views: 498
Posted By Corona688
pushd/popd is just a wrapper made around cd, it...

pushd/popd is just a wrapper made around cd, it doesn't possess the magical ability to convert a network path into a local one. Altering the universe like that is an operating system feature. You...
Forum: Shell Programming and Scripting 2 Weeks Ago
Replies: 9
Views: 469
Posted By Corona688
As mentioned above, your MS Windows style text...

As mentioned above, your MS Windows style text file is full of carriage returns:

0000040 sp a n d sp O p e r a t o r cr nl G
6120 646e 4f20 6570 ...
Forum: UNIX for Beginners Questions & Answers 2 Weeks Ago
Replies: 2
Views: 169
Posted By Corona688
You probably know roughly what it's doing -...

You probably know roughly what it's doing - foreground and background processes, SIGINT on ctrl-c, any background process clutter cleaned up with SIGHUP when you quit, et cetera. This is the minutae...
Forum: UNIX for Beginners Questions & Answers 2 Weeks Ago
Replies: 9
Views: 498
Posted By Corona688
MS Windows has three kinds of directory paths...

MS Windows has three kinds of directory paths which partly overlap and partly don't and almost no programs implement all of them.

BASH would be no help here, as in UNIX, there's only one kind of...
Showing results 1 to 25 of 500

 


All times are GMT -4. The time now is 09:53 PM.

Unix & Linux Forums Content Copyrightę1993-2018. All Rights Reserved.