I have a bash script that makes some work supervising network stuff, it works great when I run it manually, but when I put it in supervisor the ifs and the whiles does not work, just stops before any of those programming sentences, echos, running cat, more and other things work just fine, but in the minute I put an if nothing else work from there on. Please give me some tips, I really need to run this script from supervisor.
Error running bash script in supervisor
384 Views Asked by Erick At
1
There are 1 best solutions below
Related Questions in LINUX
- Is there some way to use printf to print a horizontal list of decrementing hex digits in NASM assembly on Linux
- Why does Hugo generate different taxonomy-related HTML on different OS's?
- Writes in io_uring do not advance the file offset
- Why `set -o pipefail` gives different output even though the pipe is not failing
- what really controls the permissions: UID or eUID?
- Compiling eBPF program in Docker fails due to missing '__u64' type
- Docker container unable to make HTTPS requests to external API
- Whow to use callback_query_handler in Python 3.10
- Create kea runtime directory at startup in Yocto image
- Problem on CPU scheduling algorithms in OS
- How to copy files into the singularity sandbox?
- Android kernel error: undefined reference to `get_hw_version_platform'
- Is there a need for BPF Linux namespace?
- Error when trying to execute a binary compiled in a Kali Linux machine on an Ubuntu system
- Issue with launching application after updating ElectronJs to version 28.0.0 on Windows and Linux
Related Questions in BASH
- When does Bash read heredocs?
- Why `set -o pipefail` gives different output even though the pipe is not failing
- Run an external command within jq to manipulate each values of a particular key
- API key 401 error in .env.development file
- How to "Enable mobile data" on a Huawei E3372 4G USB dongle using a bash script in Windows
- ImageMagick / Bash : pipe ignored(?) when filename format variable used
- MacOS Bash-Script: while read p and echo
- Parse command line arguments and write useful usage message without additional code
- JQ JSON - Values to Array
- why variable substitution is so different?
- postbank_pdf2csv: how to setup with Cygwin in Windows?
- Custom Bash functions & custom statements - Need some advice
- unexpected operator == in square brackets when trying to use gum lib
- How to disable a bash builtin inside a docker container
- Use sed or rename find series of alphabet then replace with with the same alphabet and a dash -
Related Questions in SHELL
- macOS - Most secure way of a GUI SUDO_ASKPASS
- When does Bash read heredocs?
- Why `set -o pipefail` gives different output even though the pipe is not failing
- Run multiple shell scripts in Dockerfile
- Alias does not take effect when I use Vim to execute external commands
- why variable substitution is so different?
- Error: fish: ${ is not a valid variable in fish
- Custom Bash functions & custom statements - Need some advice
- unexpected operator == in square brackets when trying to use gum lib
- Delete first three lines containing a certain word
- Keep the log for the last 14 days
- Iterate over items in one array and groups of items in second array
- Keep multi-version of a static-lib like what we do for shared-libs
- How to write function in bash for reuse shell commands inside using osascript?
- Why is it that when I pass certain directory names to `ls`, sometimes it does not list their contents?
Related Questions in DEBIAN
- How to restrict user access on mounted NSFv4 share with all_squash option?
- Obtaining the user's home directory for a daemon application running as root in linux
- Make Bind DNS server to request only root DNS servers of IANA website
- Mokutil does'nt work in Google Cloud Compute Engine
- Install Gitlab Repository : Wordlists
- PHP apache2 - php script cli will write txt file but browser will not
- Docker error at build E: Release file for http://deb.debian.org/debian-security/dists/bookworm-security/InRelease is not valid yet
- Slow loading of WordPress site on development server despite fast database queries
- How to use pyinstaller on debian?
- Python 3.12 pip install mod_wsgi fails
- Using Packer to install Debian
- How to install PHP Extension SQLSRV on Azure App Service (PHP 8.2 / Linux)?
- "Read-only filesystem" error during docker build
- Python code for raspberry pi not "alt+tabbing" to new window with GPIO button
- Resolve dependencies of an arbitrary Debian or Ubuntu package
Related Questions in SUPERVISORD
- Error : ERROR (spawn error) when tried to run supervisor process
- Multiple queues in AWS with Laravel stop running after sometime
- How to repoint supervisor 4.0.4 from python2 to python3?
- How to gracefully reload gunicorn changing symlink under supervisor
- CPU to 90% for gunicorn process on debian 11 - Django Nginx Gunicorn Supervisor
- Laravel Supervisor "could not open file: artisan" error
- Production debugging a python app under uwsgi, supervisord, and nginx
- Laravel in production server scheduled jobs dispatches twice
- Redis queued jobs are failing randomly due to Illuminate\Database\Eloquent\ModelNotFoundException · No query results for model
- Cannot run supervisor in Docker as a non-root user
- How to run Node.js index file using Supervisor in a Laravel project on a Ubuntu server?
- Issues running supervisor on a Laravel dockerized app
- Supervisor issue ? Notification cache? Laravel notification (Customizing The Templates) sometimes used old view
- Can we specify which git branch to use to use in supervisor file?
- How to set priorities for RQ queues under different supervisor programs
Trending Questions
- UIImageView Frame Doesn't Reflect Constraints
- Is it possible to use adb commands to click on a view by finding its ID?
- How to create a new web character symbol recognizable by html/javascript?
- Why isn't my CSS3 animation smooth in Google Chrome (but very smooth on other browsers)?
- Heap Gives Page Fault
- Connect ffmpeg to Visual Studio 2008
- Both Object- and ValueAnimator jumps when Duration is set above API LvL 24
- How to avoid default initialization of objects in std::vector?
- second argument of the command line arguments in a format other than char** argv or char* argv[]
- How to improve efficiency of algorithm which generates next lexicographic permutation?
- Navigating to the another actvity app getting crash in android
- How to read the particular message format in android and store in sqlite database?
- Resetting inventory status after order is cancelled
- Efficiently compute powers of X in SSE/AVX
- Insert into an external database using ajax and php : POST 500 (Internal Server Error)
Popular # Hahtags
Popular Questions
- How do I undo the most recent local commits in Git?
- How can I remove a specific item from an array in JavaScript?
- How do I delete a Git branch locally and remotely?
- Find all files containing a specific text (string) on Linux?
- How do I revert a Git repository to a previous commit?
- How do I create an HTML button that acts like a link?
- How do I check out a remote Git branch?
- How do I force "git pull" to overwrite local files?
- How do I list all files of a directory?
- How to check whether a string contains a substring in JavaScript?
- How do I redirect to another webpage?
- How can I iterate over rows in a Pandas DataFrame?
- How do I convert a String to an int in Java?
- Does Python have a string 'contains' substring method?
- How do I check if a string contains a specific word?
Thanks Etan Reisner, I have already fix the problem, I will put it here so if anyone else have the same problem see why. The problem was so simple (as usual) I was reading the content of text files /sys/class/net/eth0/carrier and /sys/class/net/eth0/operstate to detect when the network cable was plugged and unplugged and I was doing it with
morethat (I don't know why, because if I ran the script manually worked great) when was executed in supervisor stopped the execution there after the firstmore, I just changed tocatand that was it. Haft a day spent to solve that. Hope if someone gets into this kind of trouble find this answer and that way can solve the problem fast. Regards