Visit Our UNIX and Linux User Community

Search Results

Search: Posts Made By: primal
Forum: Ubuntu 02-15-2012
7,336
Posted By primal
ulimit values not being remembered (Ubuntu 11.10)
Hey all, long time since I've been here.

I seem to be having some issues setting the ulimit value for the number of open files on Ubuntu 11.10 (it's an Amazon EC2 instance)

I followed the...
5,895
Posted By primal
Thanks for your help Franklin52 and unilover. ...
Thanks for your help Franklin52 and unilover.

I ended up using a mixture of both commands (simple replacements done with SED, others with AWK) to fix my sql file.
11,738
Posted By primal
Thanks for your help sysgate!
Thanks for your help sysgate!
5,895
Posted By primal
Ok, so awk seems to be the way to go here. I've...
Ok, so awk seems to be the way to go here. I've used it twice already in the sql file, but the 3rd time is a bit different. Same deal as before, I need to put single quotes around the date/time
...
5,895
Posted By primal
@Franklin52 Can you explain your awk command?...
@Franklin52
Can you explain your awk command? What does the 1 at the end mean?
11,738
Posted By primal
Disabling logrotate
Is there a way to disable log rotation? (just for wtmp)
I'm looking in /etc/logrotate.conf and I checked the man page but didn't see any option to disable. Is it as simple as commenting out monthly...
5,895
Posted By primal
@unilover When I run your command it returns:...
@unilover
When I run your command it returns: \1 not defined in the RE

@Franklin52
When I run your command it places the single quotes around the dates but it removed the commas ...VALUES (1 182...
5,895
Posted By primal
SED + Regex + SQL Input file
Here's the problem...

I have a mysqldump file and I need to put single quotes around the date/time timestamp. So for example I have a line like:

INSERT INTO attachments VALUES (1,182,2004-08-06...
1,563
Posted By primal
RedHat 8 CD's - How many needed?
Just was wondering how many CD's are required to install RedHat 8. I thought I remember reading that only the first 3 are needed. The last 2 are just source code.
Then talking with from friends,...
Forum: Programming 04-22-2002
7,128
Posted By primal
Reading from a binary file
I'm having trouble with reading information back into a program from a binary file. when i try to display the contents of the file i get a Memory fault(coredump). would anyone be able to assist?...
Forum: Programming 03-19-2002
7,578
Posted By primal
math.h not working? o.0
Alright, umm i cant get this to work.
im looking at some example and a book i have.
when i try to compile my program i get an error message.
ld: 0711-317 ERROR: Undefined symbol: .sqrt
ld:...
Forum: Programming 03-09-2002
3,840
Posted By primal
thank you so much! im going to look over your...
thank you so much!
im going to look over your code right now.
primal
Forum: Programming 03-09-2002
3,840
Posted By primal
oh im saving 1 number per array? thats not good. ...
oh im saving 1 number per array? thats not good.

"But the length of a 4 digit integer is predictable. And you can store all 4 digits in one int. So you should have an array of ints. You should...
Forum: Programming 03-09-2002
3,840
Posted By primal
integer arrays
ok, i tried something i did before and i seem to be getting somewhere here. just one problem.
line 100.25: 1506-068 (W) Operation between types "int*" and "int" is not allowed. +93 ...
3,006
Posted By primal
whoo-hoo!! :D it worked!! thanks Cameron :) ...
whoo-hoo!! :D it worked!!
thanks Cameron :)
primal
3,006
Posted By primal
Changing text with sed?
Hi everyone,
Having trouble with sed. I searched the board and found some stuff, but still unclear.

I have a file named "userfile" which stores the users info in this form:...
5,618
Posted By primal
Linux Swap Partition
How big do I set the swap partition when i'm setting up my hard drive to install RedHat. (Using Partition Magic)
thanks!
primal
5,546
Posted By primal
you can also do (in VI's command mode) :468 ...
you can also do (in VI's command mode)

:468

VI does not use capital G (dunno about the other editors though)
2,885
Posted By primal
Partitioning HD
I would like to install Redhat 7.2 on my Windows machine. I only have one hard drive and I dont want to lose Windows. Which method is best for partitioning the HD?

I tried it once with Partition...
2,737
Posted By primal
Content-Type
hey.. found out what was wrong. didnt have Read permission of the file for others LOL. But yeah the C version of it, why does it work in Netscape and not IE?
primal
-----

Hey everyone!
Has...
Forum: Programming 12-04-2001
1
3,513
Posted By primal
Feof
Hi Everyone,
I'm having problems with feof
I've storing my variables inside a file, and then in another program, opening that file and recalling the information.
The problem im having is that it's...
Forum: Programming 11-21-2001
25,125
Posted By primal
converting hex to ascii (link fixed - sorry about that)
Hi everyone!
I was wondering if anyone knows how to change hex code back into ascii.

when i process a form:
" / " turn to " %2F "
" @ " turns to " %40 "
" ' " turns to " %27 "
" ( " turns to...
3,350
Posted By primal
Oh yea, i got it working eventually. Had to code...
Oh yea, i got it working eventually. Had to code in an if statement.
Having a little trouble with the HTML version, but I'm gonna try and work through it. if not... I'll be back for anyones help!...
3,350
Posted By primal
UNIX CGI script
Hey everyone!
I hope someone here is good with Unix CGI scripts.
I'm having trouble with my CGI. Here's the deal

I've created a program that searches the passwd file and cuts the users real name...
36,741
Posted By primal
livinfree to the rescue again! :) would that...
livinfree to the rescue again! :)
would that code also take care of directories inside my .trashcan?
Showing results 1 to 25 of 35

 

Featured Tech Videos

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