Pastebin
API
tools
faq
paste
Login
Sign up
SHARE
TWEET
If value == 1 restart apache service, change it 0
giochola
Oct 31st, 2017
113
0
Never
Add comment
Not a member of Pastebin yet?
Sign Up
, it unlocks many cool features!
Bash
0.12 KB
| None
|
0
0
raw
download
clone
embed
print
report
#!/bin/sh
value
=
`
cat
2
.txt
`
echo
"
$value
"
if
[
"
$value
"
-eq
"1"
]
then
echo
"0"
>
2
.txt
service httpd restart
fi
Advertisement
Add Comment
Please,
Sign In
to add comment
Public Pastes
Untitled
Python | 6 hours ago | 8.34 KB
2026_09_updated_sep__TEMP
10 hours ago | 1.50 KB
Asking IM About Client's PR Team
14 hours ago | 0.85 KB
CCA
14 hours ago | 0.01 KB
Explaining Why We Don't Use Client Email...
15 hours ago | 0.62 KB
Untitled
20 hours ago | 2.53 KB
[TLF - A KING'S MEMORY]
1 day ago | 1.62 KB
ccounter.cpp
C++ | 1 day ago | 3.61 KB
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the
Cookies Policy
.
OK, I Understand
Not a member of Pastebin yet?
Sign Up
, it unlocks many cool features!