@# Quotes DB     useful, funny, interesting





Google
 
Web www.quotesdb.info
Undernet  |  EFnet  |  Quakenet  |  Freenode  |  Dalnet  |  Ircnet  |  Galaxynet
Page: 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51



Comments:

<0> fork returns zero the the child, and the pid of the child to the parent.
<1> Right, that says "if there's no pid then we're in the child so do something". yup.
<2> exec() always makes your process disappear
<0> In that command, if fork returns zero, you know you're the child, so !0 is true, and you exec the httpd.
<0> yep.
<2> yeah...fork() returns 0 or the PID of the new process
<0> I missed s ) however.
<0> if(!(pid=fork()))exec("httpd");
<2> or -1 on error i think
<0> Error checking is for weak programs.
<2> it might not error...i dont remember
<2> LordFrith, right ;)
<0> Try? Try not. Do, or do not. There is no try.
<1> fork(0 and exec(0 are so nice and rational ;-)
<0> It's only sad that they are a bit heavy handed.



<1> ooops, make those "0" into ")"
<1> fork is economical on linux isn't it?
<0> Only if you exec immediately.
<2> wetwareinterrupt, depends on how large the process you fork() from is
<1> ... ok. anyway i was thinking (out loud) in contrast to win32
<2> god forbid you fork() in perl ;)
<1> hmmm, i never heard that forking in perl on some *nix was bad
<0> And even if you exec immediately, fork has this nasty habit of having to copy the page table first.
<2> its not...im just cheap shotting perl ;)
<3> is there a good(free?) antivirus scanner for linux?
<1> clamav
<1> heh, headmonkey
<2> linux doesnt have any viruses ;)
<4> ;)
<5> linux fork does a copy on write thing
<6> lol
<3> headmonkey, yes it does
<6> it does
<0> Even though it doesn't have to copy all the memory, it does have to copy the whole page table. As well as the fd table (but that's typically small).
<6> a few trojans
<6> :P
<2> ok...maybe it has like 2 ;)
<1> only 3 entries in the fd table i think, unless you're doing something special
<0> How about every open file?
<1> oh well, yeah, also any open non-std files
<1> But actually (thinking in Perl again) those fd's don't get p***ed across the exec unless you make it so
<0> These both came up in a web server app I had wrtten for research purposes.
<7> i have to recompile the kernel for install a framebuffer ?!
<0> wetwareinterrupt, they don't get p***ed through the exec, but they do get p***ed through the fork.
<1> I see! Boy, I feel blonde today ;-)
<1> Thx again fer teachin' me :-)
<0> np.
<8> yo
<1> yi
<8> i have a usb hdd, m*** storage. the entire drive is formatted in fat32 (80gb). windows claims there is 10gb free, linux says only 3.8gb are free. any idea what's going on there?
<1> ouch
<9> 14:14 runCoopsStationWaterLevelsScraper.sh
<9> -rw-r--r-- 1 root root 161 May 12
<9> oops
<1> MrEntropy: the disk geometry as read by Linux vs Windwoes is out of whack?
<10> Hello all
<1> There must / might be some parameter to p*** to ... something ... to get the kernel to read it correctly
<9> how come my file is accessed every 10 minuts but it's not running crontab -l shows: */10 * * * * /usr/local/icoos/scripts/runAll1.sh Permissions are all root and it's executable. I can run the script manually.
<10> Can anyone help me with Ubuntu?
<8> wetwareinterrupt: i checked out the mount options, nothing there =/
<4> Angel_Dex: just join #ubuntu
<1> i'm out of my depth and at a loss, never had to cope with that kind of trouble with a USB M*** storage device
<11> Angel_Dex, join #ubuntu for help with it
<10> they arent paying attentiont ome
<1> irc, heh
<4> Angel_Dex: if it is a linux specific question, just ask it. if someone know the answer he will help you
<1> I don't mind if you float your question towards me, personally, but it's incredibly unilkely that i'll be of help to you, Angel_Dex
<5> coachz: are you sure it's not just executing but failing? it's run with a moderately different environment
<8> wetwareinterrupt: fair enough, i'm still poking around google and such
<12> hola
<1> howdy roue
<10> Ok Well I switched Video cards and updated to dapper earlyer i booted no problems and withen a few seconds it cut my net then i rebooted and it wouldnt boot past mounting root filesystem now i just booted a 5.10 CD and it took a incredible lenght of time and got stuck on a new fast USB device and errors reading it tho i have no new fast USB devices
<1> Try disabling hotplug when you boot next time, Angel_Dex ?
<13> Has anyone got the skype one-click links to work on their desktop ? ... where you can just click on a skype link and it'll open the skype app and dial the number ?



<1> It might at least give you a chance to get a completed boot
<7> well i've a problem, if i ping a machine on my network, data goes to 'lo' and not 'eth0', why?
<10> wetwareinterrupt How do i do so?
<1> I'm not a big Ubuntu sage, but all the live-cd-ish distros i've tried have a "F2" or something you can use at boot-up, during the timeout period, to see common "cheatcodes"
<4> is it possible to prevent a task setting its parent pid to init (1)?
<1> ... IOW, things you can type on the boot commandline instead of letting it do the default thing.
<9> Cron doesn't seem to see my env var $INSTALL_DIR, where do i setup crons env ?
<4> Angel_Dex: isn't there a boot menu on the live cd where you can choose "Rescue mode" or something like this?
<10> wetwareinterrupt well im fully booted on the 5.10 live CD but it did do that and took a very long time Oh and the 6.06 live CD doesnt boot on this computer at all
<1> And, Angel_Dex, furthermore Ubuntu documentation must have a list of ways to control options like "don't start hotplug", somewhere. Look for it.
<14> coachz: * * * * * user env INSTALL_DIR=/my/install/dir /path/to/command
<10> What IS hotplug tho?
<9> Apparently cron doesn't see every thing root does
<4> Angel_Dex: hotplug tries to detect your hardware
<9> gufymike, i don't understand?
<10> jfried like plug and play in windows eh?
<1> It's the GNU/Linux system for USB and similar external devices, to integrate them into the system in a user-friendly way (bad description I know)
<14> coachz: its a generic cron command, the important part is the env INSTALL_DIR=/my/install/dir
<4> Angel_Dex: something alike
<1> Yeah, "hotplugging" is when you plug a usb pendrive into a USB port for example.
<9> this is my current script command: $INSTALL_DIR/scripts/script1r.sh &> $INSTALL_DIR/logs/script1"$dateStr".log
<10> yeah well i hightly doubt a Nvidia MX4000 would be making these problems on a linux box i mean its a semi old card no?
<1> ...(or a firewire device, or a pcmcia card ...)
<15> hi
<16> how do i send a message to another user whos on a pty/XX session?
<15> i'm having a problem configuring a static ip and internet connection on a rhel4 install
<1> hello philosophia
<14> coachz: oki set your install_dir enviornment before you command, like I showed you....
<16> how do i send a message to another user whos on a pts/XX session? <<-correction
<15> any rhel4 people?
<15> hi
<9> in crontab -e ?
<14> yes
<15> it's a fresh install, i just edited /etc/hosts /etc/sysconfig/network /etc/sysconfig/network-scripts/ifcfg-eth0
<1> Angel_Dex: you'll probably need help from Ubuntu experts on these questions.
<15> and /etc/resolv.conf
<9> thanks !
<15> i can't ping out
<15> to google.com or an ip address
<1> ifconfig eth0 tells you what, now, philosophia ?
<15> inet addr: <my desired ip addr>
<1> ok, good
<1> how about route?
<1> you need to have a default route (to the Internet)
<15> default <my.ip.addr.1> 0.0.0.0 us 0 0 0 eth0
<1> ping debian.org? It's stupid but ...
<15> wetware - ping google times out
<15> wetware - my gateway is different on this box than what it should be
<1> ... maybe both the ip you pinged and yahoo.com block icmp, many many hosts do now
<15> i can ping google on my working box
<1> Ah, if your gateway is not right, then that's what to fix
<15> where is it set?
<1> ifup/down iirc, usually sets it, but i'm really rusty with that
<1> in other words in some setups at least, the stuff under /etc/network might do it, but in your case, i dunno
<1> which distro are you using?
<15> i did ifdown/up but its still the same
<15> rhel4
<1> yup, hmm, see i have no rh-fu at all, never used it or any deriv
<1> you could try to run grep on the entire /etc/sysconfig/* and see if you can locate a call to ifconfig that sets gw, or to route, or however that's done
<1> ... in a script uner there, or a configfile
<1> depending on how your commonadline tool -fu is (find{stuff} | grep ' gw ' {] \;) is what i mean-isah
<1> mean-ish
<2> gremlins
<1> either that or imps :-)
<1> You never know unless you can smell their droppings ;-)
<15> TYPE=Ethernet was not in ifcfg-eth0
<15> hopefully that will fix
<1> Hope!
<17> Anyone here running Linux on a dual core Xeon Dempsy processor?
<0> Why wouldn't you just grep -r ' gw ' /etc/sysconfig/*
<0> mkrenz, I'm guessing a P4 3.4 GHz isn't close enough.


Name:

Comments:

Please enter the result of the sum 63 + 46 (to avoid spam):






Return to #linux
or
Go to some related logs:

#debian
#kde
#web
#python
#python
p4145gv + driver
WM8731 timing
ubuntu stop the xserver
nvidia-vedio driver
how-to play ape gentoo



Home  |  disclaimer  |  contact  |  submit quotes