Upload files to "/"
This commit is contained in:
21
sp
Normal file
21
sp
Normal file
@@ -0,0 +1,21 @@
|
||||
#!/bin/bash
|
||||
|
||||
echo "SystemProfile"
|
||||
sudo dmidecode -q
|
||||
echo 'Press enter for report (html)'
|
||||
echo 'Press ctrl+C to exit'
|
||||
read -n1
|
||||
sudo lshw -html > $(hostname).html
|
||||
xdg-open ./$(hostname).html
|
||||
echo html wrote to $(hostname).html
|
||||
echo 'Press enter upload report'
|
||||
echo 'Press ctrl+C to exit'
|
||||
read -n1
|
||||
echo Server:
|
||||
read s
|
||||
echo User:
|
||||
read u
|
||||
scp ./$(hostname).html $u@$s:/home/$u/$(hostname).html
|
||||
echo 'Done.'
|
||||
read -n1
|
||||
clear
|
||||
Reference in New Issue
Block a user