Re: Busybox httpd sends output of stderr to the Website

2017-03-21 Thread Bob Dunlop
text/plain" echo "Expires: 0" echo echo "Hello World!" echo "You should not see this text in your Browser" >&2 HTH -- Bob Dunlop ___ busybox mailing list busybox@busybox.net http://lists.busybox.net/mailman/listinfo/busybox

Re: Compiling busybox for ARM-V7

2017-01-06 Thread Bob Dunlop
stall directory make CONFIG_PREFIX=$(pwd)/../../../rootfs install Hope this helps -- Bob Dunlop ___ busybox mailing list busybox@busybox.net http://lists.busybox.net/mailman/listinfo/busybox

Re: Launching Linux from Busybox (pivot_root or switch_root, or ? )

2014-06-10 Thread Bob Dunlop
] then do_kexec_boot elif [ -c /mnt/dev/console -a -x /mnt/sbin/init ] then do_switch_root else echo Mount successful but no boot options available fi [1] http://en.wikipedia.org/wiki/Kexec -- Bob Dunlop

Re: /proc/pid/cmdline and udhcpcd

2014-03-26 Thread Bob Dunlop
(Python and PHP that I know of) have setproctitle() implementations although the implementations are poor/buggy on linux by all accounts. [1] http://stupefydeveloper.blogspot.co.uk/2008/10/linux-change-process-name.html -- Bob Dunlop

Re: Question

2013-12-05 Thread Bob Dunlop
the daemonise call you'll get the original parent ID, run it after the daemonise call you get the child ID. Both IDs are correct for different purposes. -- Bob Dunlop ___ busybox mailing list busybox@busybox.net http://lists.busybox.net/mailman

Re: serial port programming ?

2013-11-14 Thread Bob Dunlop
At a quick glance. Two basic errors and eight trivial compiler warnings. Now what's the question ? -- Bob Dunlop ___ busybox mailing list busybox@busybox.net http://lists.busybox.net/mailman/listinfo/busybox

Re: multiple pipes shell problem

2011-12-14 Thread Bob Dunlop
with the version you are compiling against ? -- Bob Dunlop ___ busybox mailing list busybox@busybox.net http://lists.busybox.net/mailman/listinfo/busybox

Re: fdisk reinstate sleep

2011-07-13 Thread Bob Dunlop
On Wed, Jul 13 at 09:04, Denys Vlasenko wrote: On Monday 11 July 2011 17:45, Bob Dunlop wrote: I traced it to a commented out sleep(2) in fdisk.c. With the sleep reinstated fdisk is reliable. What is the minimum usleep(MICROSEC) it works for you? From previous post with the loop test: So

Re: fdisk reinstate sleep

2011-07-12 Thread Bob Dunlop
+ failed, kernel still uses old table); + break; + } + usleep(5); + } #if 0 if (dos_changed) printf( -- Bob Dunlop ___ busybox mailing list busybox

Re: fdisk reinstate sleep

2011-07-12 Thread Bob Dunlop
was I was updating an in house wrapper around fdisk that doesn't allow the user to run fdisk if any of the partions on the target drive are in use. -- Bob Dunlop ___ busybox mailing list busybox@busybox.net http://lists.busybox.net/mailman/listinfo

fdisk reinstate sleep

2011-07-11 Thread Bob Dunlop
: rereading partition table failed, kernel still uses old table); -- Bob Dunlop ___ busybox mailing list busybox@busybox.net http://lists.busybox.net/mailman/listinfo/busybox

Re: Ash eval wierdness

2011-05-25 Thread Bob Dunlop
the parameters with quotes to be evaluated in the parent shell. Of course in the file will cause problems and a whole host of other things could lead to nasty security holes, but then you know that. -- Bob Dunlop ___ busybox mailing list busybox

Re: ls output

2011-05-12 Thread Bob Dunlop
: -A Don't list . and .. should read: -A Don't show . and .. The difference between list and show is subtle but it consumes no bytes and is a small step in the right direction. -- Bob Dunlop ___ busybox mailing list busybox

Re: some trouble with udev and busybox modprobe

2011-05-09 Thread Bob Dunlop
1.17.3 back in November. From my notes udev was passing the -b option to modprobe and the solution was to enable modprobe blacklists. CONFIG_FEATURE_MODPROBE_BLACKLIST=y -- Bob Dunlop ___ busybox mailing list busybox@busybox.net http

ip route flush filtering

2011-02-07 Thread Bob Dunlop
10.99.99.1 dev eth0 metric 202 # ip route flush dev vlan1234 # ip route # I also lose all the routes if I try ip route flush dev lo so I don't think the use of a vlan in the example is significant. Am I missing something really simple ? -- Bob Dunlop

Re: Limitations on a command line

2011-02-02 Thread Bob Dunlop
issue if nothing else. The big difference is the xargs version will group files together making far fewer calls to rm whereas your version invokes a new rm for each file. That could be a big efficiency hit if there are truely large numbers of files involved. -- Bob Dunlop

Re: read() builtin doesn't read integer value /proc files (but bash's does)

2010-12-15 Thread Bob Dunlop
Not a fix but a work around: $ ./busybox ash -c 'read MAX /proc/sys/kernel/pid_max; echo $MAX' 3 $ busybox ash -c 'MAX=$(cat /proc/sys/kernel/pid_max) ; echo $MAX' 32768 Files in /proc are generated on the fly. They can be fussy about how they are read. -- Bob Dunlop

Re: Can I rely absolutely on what happens when a process dies.

2010-12-09 Thread Bob Dunlop
On Wed, Dec 08 at 12:22, Johannes Stezenbach wrote: On Tue, Dec 07, 2010 at 11:43:53AM +, Bob Dunlop wrote: Pid files are not very robust in general. You can make you kill script a bit more robust with a simple check. Get the pid from the file and examine /proc/pid/cmdline which

Re: Can I rely absolutely on what happens when a process dies.

2010-12-09 Thread Bob Dunlop
, but are thinking about a shakeup in the near future. Anyone have any experience of using systemd on small systems ? -- Bob Dunlop ___ busybox mailing list busybox@busybox.net http://lists.busybox.net/mailman/listinfo/busybox

Re: Can I rely absolutely on what happens when a process dies.

2010-12-07 Thread Bob Dunlop
at busybox. If the name matches you're on to a reasonable bet that you are killing the right thing. -- Bob Dunlop ___ busybox mailing list busybox@busybox.net http://lists.busybox.net/mailman/listinfo/busybox

Re: OT: for(;;) vs while(1)

2010-11-02 Thread Bob Dunlop
to use div() rather than relying on the optimiser to spot that you were using both quotient and remainder of the same expression. Same version of C compiler would spot the optimisation on x86 platforms but miss it entirely on ARM. -- Bob Dunlop

Re: ash while loops and variable scope

2010-09-03 Thread Bob Dunlop
know the while loop produces no other output you might try echoing the final setting and evaluating the output. eval $( source_process | ( while do something sets $result done ; echo var=$result )) # $var will now contain the result HTH -- Bob Dunlop

[PATCH] obscure code patch

2010-08-17 Thread Bob Dunlop
usage of the pointer. Saves 4 bytes on my ARM compiler. Signed-off-by: Bob Dunlop bob.dun...@xyzzy.org.uk $ diff -Naur busybox-1.17.1{-orig,}/libbb/obscure.c --- busybox-1.17.1-orig/libbb/obscure.c 2010-07-06 03:25:54.0 +0100 +++ busybox-1.17.1/libbb/obscure.c 2010-08-17 12:14