Weird Issues. ["fixed"]

Don´t be shy, Linux is fun! =)
Post Reply
User avatar
Big-E
Administrator
Administrator
Posts: 1332
Joined: 16 May 2007, 16:00
16
Location: IN UR ____ , ____ING UR _____ .
Contact:

Weird Issues. ["fixed"]

Post by Big-E »

So I am building an application in PHP and have been getting weird functionality, wonder if one of you can sort it out.

Some basic info:

Running

lighttpd-1.4.13
mysql Ver 14.12 Distrib 5.0.32
PHP 5.2.0-8+etch13 (cli) (built: Oct 2 2008 08:26:18)

So about my application, it connects to a remote server using CURL via an API, when that happens (when data is called from the remote server, using CURL) the connection information is displayed in my root shell - like so:
* About to connect() to *.com port 80
* Trying xxx.xxx.xxx.xxx... * connected
* Connected to *.com (xxx.xxx.xxx.xxx) port 80
* Server auth using Basic with user 'xxxxxxxxxx'
> GET /statuses/public_timeline.json HTTP/1.1
Authorization: Basic *
Host: *.com
Accept: */*

< HTTP/1.1 200 OK
< Date: Mon, 23 Mar 2009 09:09:44 GMT
< Server: hi
< Content-Encoding: UTF-8
< Content-Type: application/json;charset=utf-8
< Content-Length: 12261
< Set-Cookie: JSESSIONID=*; Path=/
< Cache-Control: max-age=300
< Expires: Mon, 23 Mar 2009 09:14:44 GMT
< Connection: close
* Closing connection #0
Ideas? It seems like some verbose output setting is enabled, but I looked ALL over. Driving me NUTS. [/quote][/code]
Last edited by Big-E on 23 Mar 2009, 08:38, edited 1 time in total.

User avatar
bad_brain
Site Owner
Site Owner
Posts: 11636
Joined: 06 Apr 2005, 16:00
19
Location: In your eye floaters.
Contact:

Post by bad_brain »

umm...let me see if I understood this right:
you simply want to get rid of the output on the screen, right?
that's pretty easy, simply add a & at the end of the command and it'll run in background, like:

Code: Select all

myapp &
or

Code: Select all

myapp > /dev/null
this will simply "write" the output to nowhereland.

if it's a permanent service you need to add nohup, else it'll stop when you log out:

Code: Select all

nohup myapp > /dev/null
:wink:

User avatar
Big-E
Administrator
Administrator
Posts: 1332
Joined: 16 May 2007, 16:00
16
Location: IN UR ____ , ____ING UR _____ .
Contact:

Post by Big-E »

Naw, it was a cronjob calling on a php script - it all of a sudden stopped after I restarted the services. All is fine, for now. :-/

Post Reply