User Profile

Collapse

Profile Sidebar

Collapse
HugoFromBOSS
HugoFromBOSS
Last Activity: Jun 27 '08, 07:32 PM
Joined: Sep 5 '07
Location:
  •  
  • Time
  • Show
  • Source
Clear All
new posts

  • All Virtualhosts are routing to my default folder.

    Hello,

    All Virtualhosts are routing to my default folder. Any Ideas?

    Thanks
    See more | Go to post

  • HugoFromBOSS
    replied to How can i use APACHE???
    Hello,

    check out http://howtoforge.com

    here is a tutorial for Apache on CentOS and RH

    http://www.howtoforge. com/quick-n-easy-lamp-server-centos-rhel
    See more | Go to post

    Leave a comment:


  • HugoFromBOSS
    started a topic A few problems ...
    in Java

    A few problems ...

    Hello,

    I have writen a client server application, when I send a request to the server from the client I get an output that looks like this "ÿûÿû ÿûÿû'ÿýÿûÿýt est" clearly this is odd. How do I remove the misc characters?

    Secondly I have the following java code.

    Code:
    String test = "asdasdada {svr_id}";
    
    test.replace("\\{svr_id\\}", "replace");
    ...
    See more | Go to post

  • HugoFromBOSS
    replied to Creating a pidfile
    in C
    figured it out.

    echo -n $"Statting app"
    <exe>
    PID=$!
    echo $PID > "/var/run/app.pid"
    See more | Go to post

    Leave a comment:


  • HugoFromBOSS
    started a topic Creating a pidfile
    in C

    Creating a pidfile

    How can I get my program to output a pidfile once its finished loading? Thanks
    See more | Go to post

  • HugoFromBOSS
    replied to Linux Services
    in C
    Perfect thanks! It was & then sleep 3 :)
    See more | Go to post

    Leave a comment:


  • HugoFromBOSS
    replied to Linux Services
    in C
    Also, question how do I create a pidfile when my app runs?
    See more | Go to post

    Leave a comment:


  • HugoFromBOSS
    replied to Linux Services
    in C
    When I use "nohup" it still waits instead of quiting.
    See more | Go to post

    Leave a comment:


  • HugoFromBOSS
    replied to sky broadband
    This wont help, but I have left sky as there service was very poor anyway. As for you emails thats not sky's faut, unless its there email, if it is I sugest you get a new one. Once spammers have your email there is little you can do.
    See more | Go to post

    Leave a comment:


  • HugoFromBOSS
    started a topic Linux Services
    in C

    Linux Services

    Hello,

    I am writing a service for Linux I have written all the code. Here's what’s wrong I hope you can help. When the service runs it checks several things, this need to be visible to the user. Afterward it listens on a port and because its listening it stop and doesn’t return the user to the shell it just carries on waiting. This is a problem when the server start as is obviously doesn’t complete the setup it stops and waits...
    See more | Go to post

  • HugoFromBOSS
    started a topic Including MySQL in Installation of Binary
    in C

    Including MySQL in Installation of Binary

    Hey,

    I have compiled my application and it works fine connection to a MySQL database. When I move the application onto another computer It cant locate mySQL.h this is resolved by "yum install mysql-devel" however, how do I include MySQL in my project without the need to install mysql-devel on each machine I run my app on.

    Thanks
    See more | Go to post

  • HugoFromBOSS
    started a topic getline();
    in C

    getline();

    Hello,

    I am having trouble getting the getline() function in C++ to work I ahve read the references but I'm stilling having a hard time trying to get it to work can anybody help? thanks!

    Code:
    			FILE * pFile;
    	   		char du_sum[50];
    		
    			string check_dir = ("servers/" + cmd_svrid);
    			string du_dir = ("du -sb " + check_dir);
    
    			pFile = popen(du_dir.c_str(), "r");
    ...
    See more | Go to post

  • HugoFromBOSS
    replied to Getting numbers out of a string.
    in C
    woops!

    Had a bit of a problem...

    cannot convert ‘std::string’ to ‘char**’ for argument ‘1’ to ‘__ssize_t getline(char**, size_t*, FILE*)’

    Any ideas?
    See more | Go to post

    Leave a comment:


  • HugoFromBOSS
    replied to Getting numbers out of a string.
    in C
    WOW Thanks!

    Thanks alot for your help guys!
    See more | Go to post

    Leave a comment:


  • HugoFromBOSS
    replied to Getting numbers out of a string.
    in C
    Thankyou :)

    Oh one other question. The string goes onto two lines like:

    "42342423
    <blank>"

    how do I just get the first line?

    Thanks
    See more | Go to post

    Leave a comment:


  • HugoFromBOSS
    started a topic Getting numbers out of a string.
    in C

    Getting numbers out of a string.

    Hello,

    I am using the Linux command "du -sb /root/" to get the number of bytes of the folder root. This of course returns something like:

    1775440949 /root/

    the number of bytes changes. How can I get C++ to take the string with "1775440949 /root/" in it a just get the numbers and put them into a separate string.

    Thanks
    See more | Go to post

  • HugoFromBOSS
    replied to popen/system()
    in C
    Is there another way of getting the information of a program running on "screen" on C.

    I want to be able to get the last few lines of an console based applciation using C. Is this possible?
    See more | Go to post

    Leave a comment:


  • HugoFromBOSS
    replied to MySQL
    in C
    yum install mysql-devel

    seemed to get some developer packs

    Installing:
    mysql-devel x86_64 5.0.45-6.fc7 updates 2.5 M
    mysql-devel i386 5.0.45-6.fc7 updates 2.4 M
    Installing for dependencies:
    mysql-libs i386 5.0.45-6.fc7 updates 1.5 M
    Updating for dependencies:
    mysql ...
    See more | Go to post

    Leave a comment:


  • HugoFromBOSS
    replied to popen/system()
    in C
    There is no diffrence its the same result.
    See more | Go to post

    Leave a comment:


  • HugoFromBOSS
    replied to popen/system()
    in C
    *bump* is there any way of doing this?
    See more | Go to post

    Leave a comment:

No activity results to display
Show More
Working...