hi guys,
i'm making a backup on the configuration of a juniper firewall and i'm using expect to create a script to handle it, but since i started to work with expect for the first time last saturday i hope i could get some help with it...
1. i would like to know how can i create a text file to save the output of a command?
ex: save the output of ping linux.org
Code:
>ping linux.org
From 192-168-127-red5.javier.com.ve (192.168.127.5): icmp_seq=1 Redirect Host(New nexthop: 192-168-127-red1.javier.com.ve (192.168.127.1))
64 bytes from linux.org (198.182.196.48): icmp_seq=1 ttl=49 time=124 ms
2. how can i make this script to run for example every 5th of the month? (ex: januaty 5, february 5, etc.)
i really would apreciate your help...