Create a Post
cancel
Showing results for 
Search instead for 
Did you mean: 
sogod
Explorer
Jump to solution

error: "/bin/bash^M: bad interpreter: No such file or directory"

hello, 

I tried to export logs using bash script on R80.40. (in expert mode)

I've got the error: "/bin/bash^M: bad interpreter: No such file or directory"

Can you please help in solving the issue.
 
The script looks like this:
 
#!/bin/bash
    FILES="$FWDIR/log/*.log"
    for f in $FILES; do
           name=$(basename $f)
           echo "convertig"
           fwm logexport -n -p -i $f -o "/home/admin/logsFolder/$name.txt"
    done
 
best regards,
zoei
0 Kudos
1 Reply
This widget could not be displayed.

Leaderboard

Epsum factorial non deposit quid pro quo hic escorol.

Upcoming Events

    Tue 23 Apr 2024 @ 08:00 AM (CDT)

    South US: HTTPS Inspection Best Practices

    Tue 23 Apr 2024 @ 11:00 AM (EDT)

    East US: What's New in R82

    Thu 25 Apr 2024 @ 11:00 AM (SGT)

    APAC: CPX 2024 Recap

    Tue 30 Apr 2024 @ 03:00 PM (CDT)

    EMEA: CPX 2024 Recap

    Tue 23 Apr 2024 @ 08:00 AM (CDT)

    South US: HTTPS Inspection Best Practices

    Tue 23 Apr 2024 @ 11:00 AM (EDT)

    East US: What's New in R82

    Thu 25 Apr 2024 @ 11:00 AM (SGT)

    APAC: CPX 2024 Recap

    Tue 30 Apr 2024 @ 03:00 PM (CDT)

    EMEA: CPX 2024 Recap

    Thu 02 May 2024 @ 11:00 AM (SGT)

    APAC: What's new in R82
    CheckMates Events