Create a Post
cancel
Showing results for 
Search instead for 
Did you mean: 
57d322e1-c995-4
Explorer

checkpoint for linux in script and crontab

Hi, I would like to create a bash script to automatically connect my machine via checkpoint snx client.

The script actually works fine from command line but somehow the same script in crontab refuses to work.

What is the best way to provide vpn password to snx in a script?

1 Reply
PhoneBoy
Admin
Admin

The difference between running interactively and via crontab is usually the environment that is available to the process (namely $PATH and similar)

When the command is executed via crontab, you should get a mail back (if configured) telling you the result of a command run via cron.

Based on what it says, we may be able to suggest a way to make it work.

0 Kudos

Leaderboard

Epsum factorial non deposit quid pro quo hic escorol.

Upcoming Events

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

    APAC: CPX 2024 Recap

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

    EMEA: CPX 2024 Recap

    Wed 01 May 2024 @ 02:00 PM (EDT)

    South US: HTTPS Inspection Best Practices

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

    APAC: 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

    Wed 01 May 2024 @ 02:00 PM (EDT)

    South US: HTTPS Inspection Best Practices

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

    APAC: What's new in R82
    CheckMates Events