Trying to understand linux script [closed]

Closed. This question is off-topic. It is not currently accepting answers. Want to improve this question? Update the question so it’s on-topic for Server Fault. Closed 7 years ago. Improve this question I have this Linux script I found and I’m trying to understand it. Could someone please help me to understand it. The script … Read more

What does this shell script mean? [closed]

Closed. This question is off-topic. It is not currently accepting answers. Want to improve this question? Update the question so it’s on-topic for Server Fault. Closed 7 years ago. Improve this question #!/bin/bash /usr/sbin/ntpdate ntp.jst.mfeed.ad.jp I found such a script file,maybe it is used to confirm the time, can you explain it in detail? Answer … Read more

Check a list of passwords strength [closed]

Closed. This question is off-topic. It is not currently accepting answers. Want to improve this question? Update the question so it’s on-topic for Server Fault. Closed 9 years ago. Improve this question Is there any way to check a list of passwords whether they strong or not? I have a list of passwords, around 2000, … Read more

Function, that check previous command

i want to write fucntion, that check previous command. Succes or not. My code: #!/bin/bash function check_previous { RESULT=$? if [ $RESULT -eq 0 ]; then echo “success” else echo “failed” fi } echo “wwe” check_previous ls – l check_previous Yes, it works. No problem. But, i have a lot of command, that i should … Read more

how can execute complicated linux command inside perl [closed]

It’s difficult to tell what is being asked here. This question is ambiguous, vague, incomplete, overly broad, or rhetorical and cannot be reasonably answered in its current form. For help clarifying this question so that it can be reopened, visit the help center. Closed 9 years ago. #!/usr/bin/perl @HOSTS = (“192.168.14.112”, “192.168.14.90”, “192.168.160.1”, “192.168.160.100”); my … Read more

bash + create proccess from function before program ended

the following short bash program described how to execute the func1 by process ( func1 & ) func1 is function that do some tests and verification on Linux machines And this program run after reboot from /etc/rc3.d I want to ask if it possible to create from func1 a process in spite this bash script … Read more

linux + count how many digits in IP address [closed]

Closed. This question is off-topic. It is not currently accepting answers. Want to improve this question? Update the question so it’s on-topic for Server Fault. Closed 9 years ago. Improve this question I write the following syntax (exist in my ksh script) in order to find how many digits I have in IP address IP_address=127.1.1.1 … Read more

perl one liners + add empty line after the last line [closed]

Closed. This question is off-topic. It is not currently accepting answers. Want to improve this question? Update the question so it’s on-topic for Server Fault. Closed 9 years ago. Improve this question please advice what need to change in the perl syntax in order to add new empty line after the last line? example IP_INFO=12.23.2.1 … Read more