Ignore:
Timestamp:
Mar 29, 2024, 3:22:49 PM (16 months ago)
Author:
jbclement
Message:

PEM:

  • Small correction to make the 3D PEM be able to compile.
  • Improvement of "launch_pem.sh": a file "kill_launch_pem.sh" is now automatically created which allows the user to kill the process of the launching script in case.

JBC

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/LMDZ.COMMON/libf/evolution/deftank/launch_pem.sh

    r3215 r3287  
    66echo "The launching script is starting!"
    77echo "The output file is \"loglaunch.txt\"."
    8 if [ "$1" = "bg" ]; then
     8
     9# Re-spawn the script as a background process and create a bash file to kill it in case
     10if [ "$1" = "bg" ]; then
    911    date
     12    echo '#!/bin/bash' > kill_launch_pem.sh
     13    echo 'kill' $$ >> kill_launch_pem.sh
     14    chmod +x kill_launch_pem.sh
    1015else
    1116    nohup "$0" bg > loglaunch.txt 2>&1 &
Note: See TracChangeset for help on using the changeset viewer.