Cron script [SOLVED]

Started by FredFresh, March 31, 2026, 06:08:53 PM

Previous topic - Next topic
March 31, 2026, 06:08:53 PM Last Edit: Today at 03:40:20 PM by FredFresh
Hi,

I created this working script for the Cron

[START]
command:traceroute -g 127.0.0.1 10.2.0.1
parameters:
type:script
message:Automatic traceroute to 10.2.0.1
description:Automatic traceroute to 10.2.0.1

How should I modify it in order to pass as parameterthe ip to trace route (10.2.0.1)?

Thank you

You are aware of https://docs.opnsense.org/manual/diagnostics_interfaces.html#trace-route or not ?

You can create a "Traceroute Job" there too.
Weird guy who likes everything Linux and *BSD on PC/Laptop/Tablet/Mobile and funny little ARM based boards :)

Yes I am aware, but I need to schedule it because of a particular issue.


[START]
command:traceroute -g 127.0.0.1
parameters:%s
type:script
message:Automatic traceroute to %s
description:Automatic traceroute


From GUI set custom parameter field to 10.2.0.1

Description must be static.

Many many thanks!