shell script

  1. angelvg

    Shell Script and FFMpeg

    Greetings, I'm working on a script that will perform a transcode using FFMpeg, and I'm encountering some strange behavior. Location $ pwd /tmp/test The script.sh $ cat script.sh #!/bin/sh WORKDIR='/tmp/test' cd "${WORKDIR}" || exit 1 # Bucle while read -r FILENAME; do if [ -e...
  2. RetroComputingCollector

    Music with the beep command

    I was reading the man page for beep, and I discovered that you can beep at a set frequency and duration. Then I thought it could be possible to make a shell script to beep "music", and came across the idea that you could also even use mixer to play the beeps at different volumes! I'm no good at...
  3. jambock.84

    Shell The /bin/sh $LINENO value just after a nested function.

    Considering the following excerpt: 1 #!/bin/sh 2 3 check() 4 { 5 echo $1 - \ 6 $( 7 [ $2 -eq $3 ] \ 8 && echo OK \ 9 || echo FAIL "($2 != $3)" 10 ) 11 } 12 13 main() 14 { 15 check 2 $LINENO 3 16 17 inner() 18 { 19...
  4. S

    Shell output of command executed via script or shell alias differs from output when same command run directly in terminal

    I have tried two separate shells ( sh and tcsh ) to see if there is any change to this behaviour but there is no change. I have checked man pages of each command and shell to see if there is something that i have missed or misunderstood. I have also tried searching online, but so far i have been...
  5. K

    Detect DHCP Network Changes?

    I have a machine running FreeBSD 12.3 and I am looking for a way to monitor network changes through a shell script, specifically related to the network interfaces. Some examples of things that I would like to detect are: When a network interface changes status (e.g. from active to no carrier)...
  6. Keve

    Solved Script (pw) to change a user account password

    Recently I decided to extend the functionality of my home server, so I could change my FreeBSD password through the web interface I put together. A little research led me to the manual page of pw, and I found exactly what I needed. pw usermod -n johnsmith -h fd However, I have trouble...
  7. C

    Shell Shell Script in Jail: TAR doesn't quit

    I am having an issue backing up our moodle server. This is with FreeNAS11. For some reason it seems like the TAR never stops despite it finishing and creating an actual file. Or, for whatever reason, the Hard Drive is continually accessed at a rate of 20 to 30 MBs until I reset the jail with...
Back
Top