Archives
Trending
Support
Login
clear text
XML
Django
JavaScript
MATLAB
C
C++
C#
Python
SQL
Shell
Bash
Markdown
YAML
JSON
HTML
CSS
PHP
Java
Ruby
Go
Rust
Swift
Kotlin
Arduino
TypeScript
Perl
Autohotkey
Lua
SQF
R
Scala
Haskell
Groovy
Dart
Clojure
VB.NET
Objective-C
PowerShell
Bash
CoffeeScript
Verilog
root@swaggserver-01:/home/daniel# ./bin/snip.pl not reachable!! restart zebra ospfd ospf6d... Failed to restart zebra\x20ospfd\x20ospf6d.service: Unit not found. Done!! waiting 9 seconds to cont... root@swaggserver-01:/home/daniel# root@swaggserver-01:/home/daniel# cat bin/snip.pl #!/usr/bin/env perl use strict; use warnings; my $svmgr = "systemctl"; my $svact = "restart"; my @svcs = ("zebra", "ospfd", "ospf6d"); my $sleepy = 9; sub rest_svc { print "not reachable!!\n$svact @svcs... "; system("$svmgr", "$svact", "@svcs"); print "Done!!\nwaiting $sleepy seconds to cont... "; sleep ($sleepy); } rest_svc();root@swaggserver-01:/home/daniel# root@swaggserver-01:/home/daniel#
Mark as private (unlisted)
for 30 minutes
for 6 hours
for 1 day
for 1 week
for 1 month
for 1 year
everlasting (like CCCP)