How to run two parts of codes of Bashscript simultaneously while one of them is infinite while loop Announcing the arrival of Valued Associate #679: Cesar Manara Planned maintenance scheduled April 17/18, 2019 at 00:00UTC (8:00pm US/Eastern)Change Gsetting with script on LogoutStrange echo behaviorhow to fix my keyboard after a bash script messed it upCtrl+C command is not terminating infinite (while) loopHow to stop a infinite while loop running in background?Track and close children terminals. Spare the parentError while installing Oracle 12c on Ubuntu 17.04Run through two sequences in one loopStarting several codes and stoping after one of them is finish

Bete Noir -- no dairy

Why did the rest of the Eastern Bloc not invade Yugoslavia?

Book where humans were engineered with genes from animal species to survive hostile planets

How to answer "Have you ever been terminated?"

Resolving to minmaj7

Why are Kinder Surprise Eggs illegal in the USA?

Is the Standard Deduction better than Itemized when both are the same amount?

How to find all the available tools in macOS terminal?

String `!23` is replaced with `docker` in command line

Do I really need recursive chmod to restrict access to a folder?

Using et al. for a last / senior author rather than for a first author

Overriding an object in memory with placement new

In predicate logic, does existential quantification (∃) include universal quantification (∀), i.e. can 'some' imply 'all'?

Apollo command module space walk?

What is Arya's weapon design?

Why did the Falcon Heavy center core fall off the ASDS OCISLY barge?

What's inside the kernel part of virtual memory of 64 bit linux processes?

List of Python versions

How to bypass password on Windows XP account?

At the end of Thor: Ragnarok why don't the Asgardians turn and head for the Bifrost as per their original plan?

Is there a (better) way to access $wpdb results?

Why am I getting the error "non-boolean type specified in a context where a condition is expected" for this request?

Fundamental Solution of the Pell Equation

Seeking colloquialism for “just because”



How to run two parts of codes of Bashscript simultaneously while one of them is infinite while loop



Announcing the arrival of Valued Associate #679: Cesar Manara
Planned maintenance scheduled April 17/18, 2019 at 00:00UTC (8:00pm US/Eastern)Change Gsetting with script on LogoutStrange echo behaviorhow to fix my keyboard after a bash script messed it upCtrl+C command is not terminating infinite (while) loopHow to stop a infinite while loop running in background?Track and close children terminals. Spare the parentError while installing Oracle 12c on Ubuntu 17.04Run through two sequences in one loopStarting several codes and stoping after one of them is finish



.everyoneloves__top-leaderboard:empty,.everyoneloves__mid-leaderboard:empty,.everyoneloves__bot-mid-leaderboard:empty margin-bottom:0;








1















i have this bash script code and i want to run the read command side by side with the while loop as the read command fetch data from user and save it in some file and the while loop do checking on a related something , so any suggestions like doing them in both terminals or something like that



Thanks



 #!/bin/bash 
trap "echo "" > /home/........./file.txt" SIGINT SIGTERM SIGHUP
while sleep 2
do
read -s -n 1 key
if [[ $key = "" ]]; then
echo >> somefile
else
echo "You pressed '$key'"
fi
clear
done
while sleep $sleepInterval
do
i=0
while read line
do
somecommands
done









share|improve this question






























    1















    i have this bash script code and i want to run the read command side by side with the while loop as the read command fetch data from user and save it in some file and the while loop do checking on a related something , so any suggestions like doing them in both terminals or something like that



    Thanks



     #!/bin/bash 
    trap "echo "" > /home/........./file.txt" SIGINT SIGTERM SIGHUP
    while sleep 2
    do
    read -s -n 1 key
    if [[ $key = "" ]]; then
    echo >> somefile
    else
    echo "You pressed '$key'"
    fi
    clear
    done
    while sleep $sleepInterval
    do
    i=0
    while read line
    do
    somecommands
    done









    share|improve this question


























      1












      1








      1








      i have this bash script code and i want to run the read command side by side with the while loop as the read command fetch data from user and save it in some file and the while loop do checking on a related something , so any suggestions like doing them in both terminals or something like that



      Thanks



       #!/bin/bash 
      trap "echo "" > /home/........./file.txt" SIGINT SIGTERM SIGHUP
      while sleep 2
      do
      read -s -n 1 key
      if [[ $key = "" ]]; then
      echo >> somefile
      else
      echo "You pressed '$key'"
      fi
      clear
      done
      while sleep $sleepInterval
      do
      i=0
      while read line
      do
      somecommands
      done









      share|improve this question
















      i have this bash script code and i want to run the read command side by side with the while loop as the read command fetch data from user and save it in some file and the while loop do checking on a related something , so any suggestions like doing them in both terminals or something like that



      Thanks



       #!/bin/bash 
      trap "echo "" > /home/........./file.txt" SIGINT SIGTERM SIGHUP
      while sleep 2
      do
      read -s -n 1 key
      if [[ $key = "" ]]; then
      echo >> somefile
      else
      echo "You pressed '$key'"
      fi
      clear
      done
      while sleep $sleepInterval
      do
      i=0
      while read line
      do
      somecommands
      done






      12.04 bash






      share|improve this question















      share|improve this question













      share|improve this question




      share|improve this question








      edited May 3 '13 at 21:28







      Ahmed Zain El Dein

















      asked May 3 '13 at 19:58









      Ahmed Zain El DeinAhmed Zain El Dein

      3212920




      3212920




















          2 Answers
          2






          active

          oldest

          votes


















          2














          This is how I do that:



          #!/bin/bash

          a=0

          function ACTION ()

          if [[ "$bb" == "Q"

          while true; do
          read -t 1 -n 1 bb && ACTION
          echo -ne "Hello $a times. Hit "q" to quit."'r'
          a=`echo "$a + 1" | bc`
          done
          exit 0


          And this is what was answered at Stackoverflow by Andy and works great here.



          The script is his (I just added the trap part as he says that terminal would be in a weird state if the script gets killed):



          #!/bin/bash

          trap 'echo -e "nn############n# #n# Bye bye #n# #n############n" && exit 1' INT
          trap 'notify-send "Bye bye" "The terminal has been closed" && exit 1' HUP

          if [ ! -t 0 ]; then
          echo "This script must be run from a terminal"
          exit 1
          fi

          stty -echo -icanon time 0 min 0

          count=0
          keypress=''
          while true; do
          let count+=1
          echo -ne $count'r'

          # This stuff goes in _handle_keys
          read keypress
          case $keypress in
          # This case is for no keypress
          "")
          ;;
          $'e[C')
          echo "derecha"
          ;;
          $'e[D')
          echo "izquierda"
          ;;
          # If you want to do something for unknown keys, otherwise leave this out
          *)
          echo "unknown input $keypress"
          ;;
          esac
          # End _handle_keys
          done

          stty sane





          share|improve this answer

























          • Calling READ from READ adds a stackframe. If you do that too much you get a segfault: re() t=$((t+1)); if [[ $t -gt 80000 ]]; then echo foo; return; fi; re; ; re

            – Ole Tange
            Apr 9 at 8:57












          • You are right. I've updated the script with "while true". Thank you!

            – desgua
            Apr 12 at 16:00


















          1














          i would make the inf. loop its own separate script then when i run it put a ampersand after it




          #!/bin/bash
          cat /var/log/dmesg
          ~/inf-loop.sh &
          ls /var/cache/apt/archive/*.deb





          share|improve this answer























          • the point is there are many parameter related between those tow parts of the script and i dont want to run it in background as i want the terminal which control it in front of me and thank u for replying , in case u have more explanation for me u are welcome :)

            – Ahmed Zain El Dein
            May 3 '13 at 21:48











          • you could pass the parameters to the other script ~/inf-loop.sh val1 val2 &, unless you need them to change, if that is the case i dont know how

            – GM-Script-Writer-62850
            May 3 '13 at 21:52











          • ok a part of this code above is a function can i put the secode while part in another file and execute it while executing can i call this function from inside the bashscript file of loop.sh while it is within the other file with its definition and all ?

            – Ahmed Zain El Dein
            May 3 '13 at 23:07











          • the code i posted will run loop.sh as its own process and not wait for it to finish before continuing, you can pass variables to it the same as you would anything else in bash

            – GM-Script-Writer-62850
            May 4 '13 at 1:42











          • yes variable yes but i cant call within the loop.sh file another function written in the other script file to execute it right ?

            – Ahmed Zain El Dein
            May 4 '13 at 12:40











          Your Answer








          StackExchange.ready(function()
          var channelOptions =
          tags: "".split(" "),
          id: "89"
          ;
          initTagRenderer("".split(" "), "".split(" "), channelOptions);

          StackExchange.using("externalEditor", function()
          // Have to fire editor after snippets, if snippets enabled
          if (StackExchange.settings.snippets.snippetsEnabled)
          StackExchange.using("snippets", function()
          createEditor();
          );

          else
          createEditor();

          );

          function createEditor()
          StackExchange.prepareEditor(
          heartbeatType: 'answer',
          autoActivateHeartbeat: false,
          convertImagesToLinks: true,
          noModals: true,
          showLowRepImageUploadWarning: true,
          reputationToPostImages: 10,
          bindNavPrevention: true,
          postfix: "",
          imageUploader:
          brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
          contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
          allowUrls: true
          ,
          onDemand: true,
          discardSelector: ".discard-answer"
          ,immediatelyShowMarkdownHelp:true
          );



          );













          draft saved

          draft discarded


















          StackExchange.ready(
          function ()
          StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2faskubuntu.com%2fquestions%2f290287%2fhow-to-run-two-parts-of-codes-of-bashscript-simultaneously-while-one-of-them-is%23new-answer', 'question_page');

          );

          Post as a guest















          Required, but never shown

























          2 Answers
          2






          active

          oldest

          votes








          2 Answers
          2






          active

          oldest

          votes









          active

          oldest

          votes






          active

          oldest

          votes









          2














          This is how I do that:



          #!/bin/bash

          a=0

          function ACTION ()

          if [[ "$bb" == "Q"

          while true; do
          read -t 1 -n 1 bb && ACTION
          echo -ne "Hello $a times. Hit "q" to quit."'r'
          a=`echo "$a + 1" | bc`
          done
          exit 0


          And this is what was answered at Stackoverflow by Andy and works great here.



          The script is his (I just added the trap part as he says that terminal would be in a weird state if the script gets killed):



          #!/bin/bash

          trap 'echo -e "nn############n# #n# Bye bye #n# #n############n" && exit 1' INT
          trap 'notify-send "Bye bye" "The terminal has been closed" && exit 1' HUP

          if [ ! -t 0 ]; then
          echo "This script must be run from a terminal"
          exit 1
          fi

          stty -echo -icanon time 0 min 0

          count=0
          keypress=''
          while true; do
          let count+=1
          echo -ne $count'r'

          # This stuff goes in _handle_keys
          read keypress
          case $keypress in
          # This case is for no keypress
          "")
          ;;
          $'e[C')
          echo "derecha"
          ;;
          $'e[D')
          echo "izquierda"
          ;;
          # If you want to do something for unknown keys, otherwise leave this out
          *)
          echo "unknown input $keypress"
          ;;
          esac
          # End _handle_keys
          done

          stty sane





          share|improve this answer

























          • Calling READ from READ adds a stackframe. If you do that too much you get a segfault: re() t=$((t+1)); if [[ $t -gt 80000 ]]; then echo foo; return; fi; re; ; re

            – Ole Tange
            Apr 9 at 8:57












          • You are right. I've updated the script with "while true". Thank you!

            – desgua
            Apr 12 at 16:00















          2














          This is how I do that:



          #!/bin/bash

          a=0

          function ACTION ()

          if [[ "$bb" == "Q"

          while true; do
          read -t 1 -n 1 bb && ACTION
          echo -ne "Hello $a times. Hit "q" to quit."'r'
          a=`echo "$a + 1" | bc`
          done
          exit 0


          And this is what was answered at Stackoverflow by Andy and works great here.



          The script is his (I just added the trap part as he says that terminal would be in a weird state if the script gets killed):



          #!/bin/bash

          trap 'echo -e "nn############n# #n# Bye bye #n# #n############n" && exit 1' INT
          trap 'notify-send "Bye bye" "The terminal has been closed" && exit 1' HUP

          if [ ! -t 0 ]; then
          echo "This script must be run from a terminal"
          exit 1
          fi

          stty -echo -icanon time 0 min 0

          count=0
          keypress=''
          while true; do
          let count+=1
          echo -ne $count'r'

          # This stuff goes in _handle_keys
          read keypress
          case $keypress in
          # This case is for no keypress
          "")
          ;;
          $'e[C')
          echo "derecha"
          ;;
          $'e[D')
          echo "izquierda"
          ;;
          # If you want to do something for unknown keys, otherwise leave this out
          *)
          echo "unknown input $keypress"
          ;;
          esac
          # End _handle_keys
          done

          stty sane





          share|improve this answer

























          • Calling READ from READ adds a stackframe. If you do that too much you get a segfault: re() t=$((t+1)); if [[ $t -gt 80000 ]]; then echo foo; return; fi; re; ; re

            – Ole Tange
            Apr 9 at 8:57












          • You are right. I've updated the script with "while true". Thank you!

            – desgua
            Apr 12 at 16:00













          2












          2








          2







          This is how I do that:



          #!/bin/bash

          a=0

          function ACTION ()

          if [[ "$bb" == "Q"

          while true; do
          read -t 1 -n 1 bb && ACTION
          echo -ne "Hello $a times. Hit "q" to quit."'r'
          a=`echo "$a + 1" | bc`
          done
          exit 0


          And this is what was answered at Stackoverflow by Andy and works great here.



          The script is his (I just added the trap part as he says that terminal would be in a weird state if the script gets killed):



          #!/bin/bash

          trap 'echo -e "nn############n# #n# Bye bye #n# #n############n" && exit 1' INT
          trap 'notify-send "Bye bye" "The terminal has been closed" && exit 1' HUP

          if [ ! -t 0 ]; then
          echo "This script must be run from a terminal"
          exit 1
          fi

          stty -echo -icanon time 0 min 0

          count=0
          keypress=''
          while true; do
          let count+=1
          echo -ne $count'r'

          # This stuff goes in _handle_keys
          read keypress
          case $keypress in
          # This case is for no keypress
          "")
          ;;
          $'e[C')
          echo "derecha"
          ;;
          $'e[D')
          echo "izquierda"
          ;;
          # If you want to do something for unknown keys, otherwise leave this out
          *)
          echo "unknown input $keypress"
          ;;
          esac
          # End _handle_keys
          done

          stty sane





          share|improve this answer















          This is how I do that:



          #!/bin/bash

          a=0

          function ACTION ()

          if [[ "$bb" == "Q"

          while true; do
          read -t 1 -n 1 bb && ACTION
          echo -ne "Hello $a times. Hit "q" to quit."'r'
          a=`echo "$a + 1" | bc`
          done
          exit 0


          And this is what was answered at Stackoverflow by Andy and works great here.



          The script is his (I just added the trap part as he says that terminal would be in a weird state if the script gets killed):



          #!/bin/bash

          trap 'echo -e "nn############n# #n# Bye bye #n# #n############n" && exit 1' INT
          trap 'notify-send "Bye bye" "The terminal has been closed" && exit 1' HUP

          if [ ! -t 0 ]; then
          echo "This script must be run from a terminal"
          exit 1
          fi

          stty -echo -icanon time 0 min 0

          count=0
          keypress=''
          while true; do
          let count+=1
          echo -ne $count'r'

          # This stuff goes in _handle_keys
          read keypress
          case $keypress in
          # This case is for no keypress
          "")
          ;;
          $'e[C')
          echo "derecha"
          ;;
          $'e[D')
          echo "izquierda"
          ;;
          # If you want to do something for unknown keys, otherwise leave this out
          *)
          echo "unknown input $keypress"
          ;;
          esac
          # End _handle_keys
          done

          stty sane






          share|improve this answer














          share|improve this answer



          share|improve this answer








          edited Apr 12 at 16:04

























          answered May 3 '13 at 23:06









          desguadesgua

          28k883112




          28k883112












          • Calling READ from READ adds a stackframe. If you do that too much you get a segfault: re() t=$((t+1)); if [[ $t -gt 80000 ]]; then echo foo; return; fi; re; ; re

            – Ole Tange
            Apr 9 at 8:57












          • You are right. I've updated the script with "while true". Thank you!

            – desgua
            Apr 12 at 16:00

















          • Calling READ from READ adds a stackframe. If you do that too much you get a segfault: re() t=$((t+1)); if [[ $t -gt 80000 ]]; then echo foo; return; fi; re; ; re

            – Ole Tange
            Apr 9 at 8:57












          • You are right. I've updated the script with "while true". Thank you!

            – desgua
            Apr 12 at 16:00
















          Calling READ from READ adds a stackframe. If you do that too much you get a segfault: re() t=$((t+1)); if [[ $t -gt 80000 ]]; then echo foo; return; fi; re; ; re

          – Ole Tange
          Apr 9 at 8:57






          Calling READ from READ adds a stackframe. If you do that too much you get a segfault: re() t=$((t+1)); if [[ $t -gt 80000 ]]; then echo foo; return; fi; re; ; re

          – Ole Tange
          Apr 9 at 8:57














          You are right. I've updated the script with "while true". Thank you!

          – desgua
          Apr 12 at 16:00





          You are right. I've updated the script with "while true". Thank you!

          – desgua
          Apr 12 at 16:00













          1














          i would make the inf. loop its own separate script then when i run it put a ampersand after it




          #!/bin/bash
          cat /var/log/dmesg
          ~/inf-loop.sh &
          ls /var/cache/apt/archive/*.deb





          share|improve this answer























          • the point is there are many parameter related between those tow parts of the script and i dont want to run it in background as i want the terminal which control it in front of me and thank u for replying , in case u have more explanation for me u are welcome :)

            – Ahmed Zain El Dein
            May 3 '13 at 21:48











          • you could pass the parameters to the other script ~/inf-loop.sh val1 val2 &, unless you need them to change, if that is the case i dont know how

            – GM-Script-Writer-62850
            May 3 '13 at 21:52











          • ok a part of this code above is a function can i put the secode while part in another file and execute it while executing can i call this function from inside the bashscript file of loop.sh while it is within the other file with its definition and all ?

            – Ahmed Zain El Dein
            May 3 '13 at 23:07











          • the code i posted will run loop.sh as its own process and not wait for it to finish before continuing, you can pass variables to it the same as you would anything else in bash

            – GM-Script-Writer-62850
            May 4 '13 at 1:42











          • yes variable yes but i cant call within the loop.sh file another function written in the other script file to execute it right ?

            – Ahmed Zain El Dein
            May 4 '13 at 12:40















          1














          i would make the inf. loop its own separate script then when i run it put a ampersand after it




          #!/bin/bash
          cat /var/log/dmesg
          ~/inf-loop.sh &
          ls /var/cache/apt/archive/*.deb





          share|improve this answer























          • the point is there are many parameter related between those tow parts of the script and i dont want to run it in background as i want the terminal which control it in front of me and thank u for replying , in case u have more explanation for me u are welcome :)

            – Ahmed Zain El Dein
            May 3 '13 at 21:48











          • you could pass the parameters to the other script ~/inf-loop.sh val1 val2 &, unless you need them to change, if that is the case i dont know how

            – GM-Script-Writer-62850
            May 3 '13 at 21:52











          • ok a part of this code above is a function can i put the secode while part in another file and execute it while executing can i call this function from inside the bashscript file of loop.sh while it is within the other file with its definition and all ?

            – Ahmed Zain El Dein
            May 3 '13 at 23:07











          • the code i posted will run loop.sh as its own process and not wait for it to finish before continuing, you can pass variables to it the same as you would anything else in bash

            – GM-Script-Writer-62850
            May 4 '13 at 1:42











          • yes variable yes but i cant call within the loop.sh file another function written in the other script file to execute it right ?

            – Ahmed Zain El Dein
            May 4 '13 at 12:40













          1












          1








          1







          i would make the inf. loop its own separate script then when i run it put a ampersand after it




          #!/bin/bash
          cat /var/log/dmesg
          ~/inf-loop.sh &
          ls /var/cache/apt/archive/*.deb





          share|improve this answer













          i would make the inf. loop its own separate script then when i run it put a ampersand after it




          #!/bin/bash
          cat /var/log/dmesg
          ~/inf-loop.sh &
          ls /var/cache/apt/archive/*.deb






          share|improve this answer












          share|improve this answer



          share|improve this answer










          answered May 3 '13 at 21:36









          GM-Script-Writer-62850GM-Script-Writer-62850

          1,9241112




          1,9241112












          • the point is there are many parameter related between those tow parts of the script and i dont want to run it in background as i want the terminal which control it in front of me and thank u for replying , in case u have more explanation for me u are welcome :)

            – Ahmed Zain El Dein
            May 3 '13 at 21:48











          • you could pass the parameters to the other script ~/inf-loop.sh val1 val2 &, unless you need them to change, if that is the case i dont know how

            – GM-Script-Writer-62850
            May 3 '13 at 21:52











          • ok a part of this code above is a function can i put the secode while part in another file and execute it while executing can i call this function from inside the bashscript file of loop.sh while it is within the other file with its definition and all ?

            – Ahmed Zain El Dein
            May 3 '13 at 23:07











          • the code i posted will run loop.sh as its own process and not wait for it to finish before continuing, you can pass variables to it the same as you would anything else in bash

            – GM-Script-Writer-62850
            May 4 '13 at 1:42











          • yes variable yes but i cant call within the loop.sh file another function written in the other script file to execute it right ?

            – Ahmed Zain El Dein
            May 4 '13 at 12:40

















          • the point is there are many parameter related between those tow parts of the script and i dont want to run it in background as i want the terminal which control it in front of me and thank u for replying , in case u have more explanation for me u are welcome :)

            – Ahmed Zain El Dein
            May 3 '13 at 21:48











          • you could pass the parameters to the other script ~/inf-loop.sh val1 val2 &, unless you need them to change, if that is the case i dont know how

            – GM-Script-Writer-62850
            May 3 '13 at 21:52











          • ok a part of this code above is a function can i put the secode while part in another file and execute it while executing can i call this function from inside the bashscript file of loop.sh while it is within the other file with its definition and all ?

            – Ahmed Zain El Dein
            May 3 '13 at 23:07











          • the code i posted will run loop.sh as its own process and not wait for it to finish before continuing, you can pass variables to it the same as you would anything else in bash

            – GM-Script-Writer-62850
            May 4 '13 at 1:42











          • yes variable yes but i cant call within the loop.sh file another function written in the other script file to execute it right ?

            – Ahmed Zain El Dein
            May 4 '13 at 12:40
















          the point is there are many parameter related between those tow parts of the script and i dont want to run it in background as i want the terminal which control it in front of me and thank u for replying , in case u have more explanation for me u are welcome :)

          – Ahmed Zain El Dein
          May 3 '13 at 21:48





          the point is there are many parameter related between those tow parts of the script and i dont want to run it in background as i want the terminal which control it in front of me and thank u for replying , in case u have more explanation for me u are welcome :)

          – Ahmed Zain El Dein
          May 3 '13 at 21:48













          you could pass the parameters to the other script ~/inf-loop.sh val1 val2 &, unless you need them to change, if that is the case i dont know how

          – GM-Script-Writer-62850
          May 3 '13 at 21:52





          you could pass the parameters to the other script ~/inf-loop.sh val1 val2 &, unless you need them to change, if that is the case i dont know how

          – GM-Script-Writer-62850
          May 3 '13 at 21:52













          ok a part of this code above is a function can i put the secode while part in another file and execute it while executing can i call this function from inside the bashscript file of loop.sh while it is within the other file with its definition and all ?

          – Ahmed Zain El Dein
          May 3 '13 at 23:07





          ok a part of this code above is a function can i put the secode while part in another file and execute it while executing can i call this function from inside the bashscript file of loop.sh while it is within the other file with its definition and all ?

          – Ahmed Zain El Dein
          May 3 '13 at 23:07













          the code i posted will run loop.sh as its own process and not wait for it to finish before continuing, you can pass variables to it the same as you would anything else in bash

          – GM-Script-Writer-62850
          May 4 '13 at 1:42





          the code i posted will run loop.sh as its own process and not wait for it to finish before continuing, you can pass variables to it the same as you would anything else in bash

          – GM-Script-Writer-62850
          May 4 '13 at 1:42













          yes variable yes but i cant call within the loop.sh file another function written in the other script file to execute it right ?

          – Ahmed Zain El Dein
          May 4 '13 at 12:40





          yes variable yes but i cant call within the loop.sh file another function written in the other script file to execute it right ?

          – Ahmed Zain El Dein
          May 4 '13 at 12:40

















          draft saved

          draft discarded
















































          Thanks for contributing an answer to Ask Ubuntu!


          • Please be sure to answer the question. Provide details and share your research!

          But avoid


          • Asking for help, clarification, or responding to other answers.

          • Making statements based on opinion; back them up with references or personal experience.

          To learn more, see our tips on writing great answers.




          draft saved


          draft discarded














          StackExchange.ready(
          function ()
          StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2faskubuntu.com%2fquestions%2f290287%2fhow-to-run-two-parts-of-codes-of-bashscript-simultaneously-while-one-of-them-is%23new-answer', 'question_page');

          );

          Post as a guest















          Required, but never shown





















































          Required, but never shown














          Required, but never shown












          Required, but never shown







          Required, but never shown

































          Required, but never shown














          Required, but never shown












          Required, but never shown







          Required, but never shown







          Popular posts from this blog

          Distance measures on a map of a game The 2019 Stack Overflow Developer Survey Results Are Inmin distance in a graphShortest distance path on contour plotHow to plot a tilted map?Finding points outside of a diskDelaunay link distanceAnnulus from GeoDisks: drawing a ring on a mapNegative Correlation DistanceFind distance along a path (GPS coordinates)Finding position at given distance in a GeoPathMathematics behind distance estimation using camera

          How to get a smooth, uniform ParametricPlot of a 2D Region?How to plot a complicated Region?How to exclude a region from ParametricPlotHow discretize a region placing vertices on a specific non-uniform gridHow to transform a Plot or a ParametricPlot into a RegionHow can I get a smooth plot of a bounded region?Smooth ParametricPlot3D with RegionFunction?Smooth border of a region ParametricPlotSmooth region boundarySmooth region plot from list of pointsGet minimum y of a certain x in a region

          Genealogie vun de Merowenger Vum Merowech bis zum Chilperich I. | Navigatiounsmenü