Mf65 File List/Rename/Delete Bash Scripta
quick upload:
these have (your.local.ip) change to suit yours
bash script for file listings:
###################################
#!/bin/sh
echo "use ^c to exit"
echo "path"
read PARAM1
echo "page\(please use 1 as default\(10 r/s per page\)\)"
read PARAM2
echo '
'
HOST_PARAM="http://your.local.ip/goform/goform_set_cmd_process?isTest=false&goformId=HTTPSHARE_ENTERFOLD&path_SD_CARD="$PARAM1"&indexPage=$PARAM2"
curl "$HOST_PARAM"
echo '
'
echo "New Page Number? or 0 to go back."
read PARAM3
HOST_PARAM="http://your.local.ip/goform/goform_set_cmd_process?isTest=false&goformId=HTTPSHARE_ENTERFOLD&path_SD_CARD="$PARAM1"&indexPage=$PARAM3"
curl "$HOST_PARAM"
echo '
'
echo "use ^c to exit"
echo "path"
read PARAM1
echo "page\(please use 1 as default\(10 r/s per page\)\)"
read PARAM2
HOST_PARAM="http://your.local.ip/goform/goform_set_cmd_process?isTest=false&goformId=HTTPSHARE_ENTERFOLD&path_SD_CARD="$PARAM1"&indexPage=$PARAM2"
curl "$HOST_PARAM"
echo '
'
echo "New Page Number? or 0 to go back."
read PARAM3
HOST_PARAM="http://your.local.ip/goform/goform_set_cmd_process?isTest=false&goformId=HTTPSHARE_ENTERFOLD&path_SD_CARD="$PARAM1"&indexPage=$PARAM3"
curl "$HOST_PARAM"
echo "use ^c to exit"
echo "path"
read PARAM1
echo "page\(please use 1 as default\(10 r/s per page\)\)"
read PARAM2
HOST_PARAM="http://your.local.ip/goform/goform_set_cmd_process?isTest=false&goformId=HTTPSHARE_ENTERFOLD&path_SD_CARD="$PARAM1"&indexPage=$PARAM2"
curl "$HOST_PARAM"
##############################################
bash for deleting files
#################################33
#!/bin/sh
echo "use ^c to exit"
echo "path to delete file from use mmc2 for sd card"
read PARAM1
echo "file name to delete"
read PARAM2
echo '
'
HOST_PARAM="http://your.local.ip/goform/goform_set_cmd_process?isTest=false&goformId=HTTPSHARE_DEL&path_SD_CARD=$PARAM1&name_SD_CARD='$PARAM2'*"
curl "$HOST_PARAM"
echo '
'
##################################
bash for rename(can be used on all sorts of files in all sorts of places)
###################################
#!/bin/sh
echo "use ^c to exit"
echo "path_SD_CARD"
read PARAM1
echo "OLD_NAME_SD_CARD"
read PARAM2
echo "NEW_NAME_SD_CARD"
read PARAM3
echo '
'
HOST_PARAM="http://your.local.ip/goform/goform_set_cmd_process?isTest=false&goformId=HTTPSHARE_FILE_RENAME&path_SD_CARD=$PARAM1&OLD_NAME_SD_CARD=$PARAM2&NEW_NAME_SD_CARD=$PARAM3&path_SD_CARD_time=2016-06-11+05%3A49%3A06&path_SD_CARD_time_unix=1465624146"
curl "$HOST_PARAM"
echo '
'
these have (your.local.ip) change to suit yours
bash script for file listings:
###################################
#!/bin/sh
echo "use ^c to exit"
echo "path"
read PARAM1
echo "page\(please use 1 as default\(10 r/s per page\)\)"
read PARAM2
echo '
'
HOST_PARAM="http://your.local.ip/goform/goform_set_cmd_process?isTest=false&goformId=HTTPSHARE_ENTERFOLD&path_SD_CARD="$PARAM1"&indexPage=$PARAM2"
curl "$HOST_PARAM"
echo '
'
echo "New Page Number? or 0 to go back."
read PARAM3
HOST_PARAM="http://your.local.ip/goform/goform_set_cmd_process?isTest=false&goformId=HTTPSHARE_ENTERFOLD&path_SD_CARD="$PARAM1"&indexPage=$PARAM3"
curl "$HOST_PARAM"
echo '
'
echo "use ^c to exit"
echo "path"
read PARAM1
echo "page\(please use 1 as default\(10 r/s per page\)\)"
read PARAM2
HOST_PARAM="http://your.local.ip/goform/goform_set_cmd_process?isTest=false&goformId=HTTPSHARE_ENTERFOLD&path_SD_CARD="$PARAM1"&indexPage=$PARAM2"
curl "$HOST_PARAM"
echo '
'
echo "New Page Number? or 0 to go back."
read PARAM3
HOST_PARAM="http://your.local.ip/goform/goform_set_cmd_process?isTest=false&goformId=HTTPSHARE_ENTERFOLD&path_SD_CARD="$PARAM1"&indexPage=$PARAM3"
curl "$HOST_PARAM"
echo "use ^c to exit"
echo "path"
read PARAM1
echo "page\(please use 1 as default\(10 r/s per page\)\)"
read PARAM2
HOST_PARAM="http://your.local.ip/goform/goform_set_cmd_process?isTest=false&goformId=HTTPSHARE_ENTERFOLD&path_SD_CARD="$PARAM1"&indexPage=$PARAM2"
curl "$HOST_PARAM"
##############################################
bash for deleting files
#################################33
#!/bin/sh
echo "use ^c to exit"
echo "path to delete file from use mmc2 for sd card"
read PARAM1
echo "file name to delete"
read PARAM2
echo '
'
HOST_PARAM="http://your.local.ip/goform/goform_set_cmd_process?isTest=false&goformId=HTTPSHARE_DEL&path_SD_CARD=$PARAM1&name_SD_CARD='$PARAM2'*"
curl "$HOST_PARAM"
echo '
'
##################################
bash for rename(can be used on all sorts of files in all sorts of places)
###################################
#!/bin/sh
echo "use ^c to exit"
echo "path_SD_CARD"
read PARAM1
echo "OLD_NAME_SD_CARD"
read PARAM2
echo "NEW_NAME_SD_CARD"
read PARAM3
echo '
'
HOST_PARAM="http://your.local.ip/goform/goform_set_cmd_process?isTest=false&goformId=HTTPSHARE_FILE_RENAME&path_SD_CARD=$PARAM1&OLD_NAME_SD_CARD=$PARAM2&NEW_NAME_SD_CARD=$PARAM3&path_SD_CARD_time=2016-06-11+05%3A49%3A06&path_SD_CARD_time_unix=1465624146"
curl "$HOST_PARAM"
echo '
'
Comments
Post a Comment