busybox Questions

4

Solved

Following code works for bash but now i need it for busybox ash , which apparrently does not have "=~" keyword="^Cookie: (.*)$" if [[ $line =~ $keyword ]] then bla bla fi Is there a suitable re...
Technicality asked 9/1, 2014 at 2:58

8

Solved

How can I generate random numbers using AShell (restricted bash)? I am using a BusyBox binary on the device which does not have od or $RANDOM. My device has /dev/urandom and /dev/random.
Cum asked 4/10, 2011 at 2:34

2

Solved

Reproduce steps: kubectl run busybox1 --generator=run-pod/v1 --image=busybox:1.28 -- sleep 3600 kubectl run busybox2 --generator=run-pod/v1 --image=busybox:1.31.1 -- sleep 3600 kubectl exec -ti b...
Sandhurst asked 1/1, 2020 at 16:0

1

I'm building a Yocto (thud) image but I had an error during do_rootfs: update-alternatives: Error: not linking xxx/tmp/work/cc-dey-linux/dey-image/1.0-r0/rootfs/usr/sbin/rtcwake to /bin/busybox.no...
Lanie asked 2/6, 2021 at 7:48

3

I am trying to compile linux for RISCV Arch using buildroot(busybox). I was using 18.04 and 20.04 previously and had no issues compiling it. Right now, I have upgraded it to 21.10 for building some...
Gilt asked 26/10, 2021 at 8:17

7

Solved

Given a binary, compiled with Go using GOOS=linux and GOARCH=amd64, deployed to a docker container based on alpine:3.3, the binary will not run if the docker engine host is Ubuntu (15.10): sh: /bi...
Lapham asked 29/3, 2016 at 8:34

2

I've downloaded the source for mips android and have done a "make" and got the emulator running. I want to push the busybox into the emulator. I've downloaded the static compiled busybox binary. Un...
Simla asked 17/3, 2011 at 7:34

8

Solved

I am using busybox to detect my network problem in kubernetes v1.18 pods. I created the busybox like this: apiVersion: v1 kind: Pod metadata: name: busybox namespace: default spec: containers: ...
Authentic asked 11/7, 2020 at 9:20

3

I have arm-based busybox (Embedded Linux) with limited binaries. How to http post or put without using curl?
Jointly asked 5/10, 2015 at 17:37

1

I have the following Job to build Images in my gitlab-ci.yml dockerize: stage: containerize before_script: - eval $($CONTEXT_SCRIPT_PATH) environment: name: $CONTEXT url: XXX image: name: g...
Jonis asked 23/7, 2020 at 7:58

3

I was a little confused with below command: kubectl run busybox --image=busybox --restart=Never -o yaml --dry-run -- /bin/sh -c 'echo hello;sleep 3600' YAML: apiVersion: v1 kind: Pod metadata: ...
Prothesis asked 9/12, 2019 at 11:50

6

Solved

I'm using awk to urldecode some text. If I code the string into the printf statement like printf "%s", "\x3D" it correctly outputs =. The same if I have the whole escaped string as a variable. Ho...
Rishi asked 16/9, 2010 at 15:12

3

Solved

I am currently building a POS automation script. The POS terminal has Shell Busybox ash. That's why am not able to use the basic commands, as those are not behaving the same. Below is the query : S...
Selinski asked 26/8, 2016 at 9:28

2

Solved

What is the difference between alpine docker image and busybox docker image ? When I check their dockfiles, alpine is like this (for Alpine v3.12 - 3.12.7) FROM scratch ADD alpine-minirootfs-3.12.7...
Lordship asked 14/5, 2021 at 4:23

1

The ash shell in busybox doesn't seem to implement any of the standard ways to get the filename that's being sourced. For instance: testo: #!/usr/bin/env -S busybox ash echo hello whorl echo using...
Augustina asked 11/2, 2022 at 18:6

1

Running an image based alpine with busybox and ash: /mnt/builddir/code/src/main/helm # busybox | head -1 BusyBox v1.31.1 () multi-call binary. I wrote an sh script that prints file's names only if...
Nicol asked 14/4, 2021 at 10:31

3

I compiled busybox myself,and I put it in our embedded linux. But I have some questions. Question 1:When I try to use some command such as gzip,it prints "gzip: applet not found".While I checked t...
Sheritasherj asked 27/9, 2013 at 6:2

8

I have been trying to create my own busybox base image. # ./mkimage.sh -t pensu/busybox busybox-static + mkdir -p /var/tmp/docker-mkimage.US3tHy0uBQ/rootfs + tar --numeric-owner -caf /var/tm...
Kaceykachina asked 9/4, 2015 at 9:43

5

How does one reboot from an ash shell? I have an Ubuntu system that is currently bricked for some reason (not pertinent for this question), which means I boot into a BusyBox ash shell. But t...
Propman asked 7/5, 2012 at 13:18

2

Solved

How to schedule a cronjob which executes a kubectl command? I would like to run the following kubectl command every 5 minutes: kubectl patch deployment runners -p '{"spec":{"template":{"spec":{"c...
Tinkling asked 27/2, 2019 at 11:7

2

Solved

I would expect the second line to say foo instead of command not found: $ alias foo="echo bac" ; foo; -bash: foo: command not found $ foo bac $ Why won't the second line say foo? Tested with the...
Illmannered asked 22/7, 2016 at 12:36

3

Solved

I tried different variants echo $0 echo $shell echo $SHELL ps -p $$ but none of them can give a distinctive output. I can do something like this but it's ugly and hackish: if ls --help 2>&am...
Pratte asked 22/7, 2014 at 8:18

4

I am trying to install busybox on an android emulator. I downloaded and compiled busybox and have the busybox binary on my pc. i then did adb push busybox /data/local/tmp then did adb shell, the...
Staples asked 20/2, 2014 at 7:5

3

I thought I understood Docker. I understood it as a way to package up software with lots of dependencies..to basically create a little world where absolutely everything is taken care of for a piece...
Dandiprat asked 22/10, 2015 at 21:56

6

Solved

My problem is that I need to create a file with this exact bytes: 48, 00, 49, 00. I cannot use C, perl, other scripting language (the target is an embedded device). I tried this using awk, and in ...
Fiendish asked 7/4, 2011 at 14:33

© 2022 - 2025 — McMap. All rights reserved.