Concert my Bash Script to Powershell $10-30 USD Veröffentlicht vor fast 7 Jahren
$10-30 USD Bezahlt bei Lieferung
Please convert this bash code to Powershell with proper commenting, describing the program.
#!/bin/bash
scriptPID=$$
myarr=($(ps -ef | grep [login to view URL] | grep -v grep |awk '{print $2}'))
if [ ${#myarr[@]} -gt 1 ]
then
for i in "${myarr[@]}"
do
echo "outside $i"
if [ "$i" -ne "$scriptPID" ]
then
echo "inside $i and killing"
kill -9 $i &>/dev/null
fi
done
fi
timeout 600s find -H / -type f -exec stat -c "%n %U %G %a %s %Y" {} \; 2>/dev/null >/tmp/`hostname`_`date +%Y%m%d_%H%M`.txt &
PID=$!
sleep 605
if [[ $(ps -o pid= --ppid $PID &>/dev/null) ]]; then ps -o pid= --ppid $PID | xargs kill -9; fi
Projekt-ID: 14348481
Über das Projekt 3 Vorschläge
Remote Projekt
Aktiv vor 7 Jahren
Möchten Sie etwas Geld verdienen? E-Mail-Adresse Für ähnliche Stellen bewerben Vorteile einer Ausschreibung auf Freelancer Legen Sie Ihr Budget und Ihren Zeitrahmen fest
Für Ihre Arbeit bezahlt werden
Skizzieren Sie Ihren Vorschlag
Sie können sich kostenlos anmelden und auf Aufträge bieten
3 Freelancer bieten im Durchschnitt $53 USD für diesen Auftrag
I can complete the task within 2-3 days.
Relevant Skills and Experience
Bash, Power Shell, Perl, Python
Proposed Milestones
$24 USD - New to this freelancing world.
$24 USD in 3 Tagen
0,0 (0 Bewertungen)