From aed030ed4011aeea5c06d0c1e1a8203f40927ceb Mon Sep 17 00:00:00 2001 From: Kyle Hagerty Date: Mon, 16 Mar 2020 14:16:28 -0500 Subject: [PATCH] cleanup old files after script finishes --- Linux/connect_idrac_kvm.sh | 4 +++- MacOS/connect_idrac_kvm.sh | 4 +++- 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/Linux/connect_idrac_kvm.sh b/Linux/connect_idrac_kvm.sh index e964f93..b5e584e 100644 --- a/Linux/connect_idrac_kvm.sh +++ b/Linux/connect_idrac_kvm.sh @@ -10,4 +10,6 @@ echo -n 'Password: ' read -s dracpwd echo -./jre/bin/java -cp avctKVM.jar -Djava.library.path=./lib com.avocent.idrac.kvm.Main ip=$drachost kmport=5900 vport=5900 user=$dracuser passwd=$dracpwd apcp=1 version=2 vmprivilege=true "helpurl=https://$drachost:443/help/contents.html" \ No newline at end of file +./jre/bin/java -cp avctKVM.jar -Djava.library.path=./lib com.avocent.idrac.kvm.Main ip=$drachost kmport=5900 vport=5900 user=$dracuser passwd=$dracpwd apcp=1 version=2 vmprivilege=true "helpurl=https://$drachost:443/help/contents.html" + +rm avctKVM.jar \ No newline at end of file diff --git a/MacOS/connect_idrac_kvm.sh b/MacOS/connect_idrac_kvm.sh index e964f93..b5e584e 100644 --- a/MacOS/connect_idrac_kvm.sh +++ b/MacOS/connect_idrac_kvm.sh @@ -10,4 +10,6 @@ echo -n 'Password: ' read -s dracpwd echo -./jre/bin/java -cp avctKVM.jar -Djava.library.path=./lib com.avocent.idrac.kvm.Main ip=$drachost kmport=5900 vport=5900 user=$dracuser passwd=$dracpwd apcp=1 version=2 vmprivilege=true "helpurl=https://$drachost:443/help/contents.html" \ No newline at end of file +./jre/bin/java -cp avctKVM.jar -Djava.library.path=./lib com.avocent.idrac.kvm.Main ip=$drachost kmport=5900 vport=5900 user=$dracuser passwd=$dracpwd apcp=1 version=2 vmprivilege=true "helpurl=https://$drachost:443/help/contents.html" + +rm avctKVM.jar \ No newline at end of file