Showing results 1 to 25 of 500
Search took 0.15 seconds.
Search: Posts Made By: Corona688
Forum: Shell Programming and Scripting 2 Days Ago
Replies: 3
Views: 193
Posted By Corona688
Hm. To prevent find from running too often -...

Hm. To prevent find from running too often - disk intensive to list an entire big directory tree -- how about:


DIR="/home/pc/Pictures"

while true
do
find "$DIR" -type f -name...
Forum: UNIX for Beginners Questions & Answers 2 Days Ago
Replies: 13
Views: 257
Posted By Corona688
The behavior you describe above is exactly what...

The behavior you describe above is exactly what I'd expect when telnetting into a properly functioning FTP server, is the thing.
Forum: UNIX for Beginners Questions & Answers 2 Days Ago
Replies: 13
Views: 257
Posted By Corona688
telnet is not going to read the .netrc file, you...

telnet is not going to read the .netrc file, you have to use 'ftp', the ftp client.
Forum: Programming 6 Days Ago
Replies: 6
Views: 405
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 6 Days Ago
Replies: 6
Views: 405
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 1 Week Ago
Replies: 6
Views: 405
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 1 Week Ago
Replies: 17
Views: 320
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 1 Week Ago
Replies: 17
Views: 320
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 1 Week Ago
Replies: 17
Views: 320
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 1 Week Ago
Replies: 17
Views: 320
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 1 Week Ago
Replies: 17
Views: 320
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 1 Week Ago
Replies: 17
Views: 320
Posted By Corona688
Remove the 'single quotes'

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

Then I would suggest putting the regex into a file.
Forum: Programming 1 Week Ago
Replies: 1
Views: 1,060
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? 1 Week Ago
Replies: 14
Views: 413
Posted By Corona688
Good.

Good.
Forum: Shell Programming and Scripting 1 Week Ago
Replies: 17
Views: 320
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? 1 Week Ago
Replies: 14
Views: 413
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: 415
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 2 Weeks Ago
Replies: 9
Views: 517
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 2 Weeks Ago
Replies: 6
Views: 727
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 3 Weeks Ago
Replies: 6
Views: 727
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? 3 Weeks Ago
Replies: 36
Views: 1,046
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 3 Weeks Ago
Replies: 23
Views: 1,107
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 3 Weeks Ago
Replies: 23
Views: 1,107
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 3 Weeks Ago
Replies: 9
Views: 517
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...
Showing results 1 to 25 of 500

 


All times are GMT -4. The time now is 04:21 PM.

Unix & Linux Forums Content Copyrightę1993-2018. All Rights Reserved.
×
UNIX.COM Login
Username:
Password:  
Show Password





Not a Forum Member?
Forgot Password?