Skip to content

wtmpx/SFSCextractor

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

15 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

SFSCextractor will automaticaly create a case directory, move the downloaded attachemnts into the case directory and try to extract them. For this to work you need to precede the original filename with

"SFSC<casnumber>_"

when downloading a attachment (in the download dialog of the browser).

e.g.

for SFSC case 0012345

supportconfig_1234567891.tar.gz

needs to be namend

SFSC0012345_supportconfig_1234567891.tar.gz

There is a also a set of userscripts that help, they in the js folder or you find them there:

https://greasyfork.org/en/users/438027-paul-zirnik

To install the SFSCextractor script you need to

  1. make sure you have installed "inotify-tools" on the system

sudo zypper in inotify-tools

  1. copy/create the ~/.SFSCextractorrc file to your home directory the file should contain

-------~/.SFSCextractorrc--------------

# e.g. your browsers default download folder
DOWNLOAD_FOLDER=~/Downloads

# the folder with your cases
CASES_FOLDER=/hdhome/SFSC 

# loglevel 1=errors 2=verbose
LOGLEVEL=1

  1. copy the SFSCextractor.sh into /usr/bin/
  sudo cp SFSCextractor.sh /usr/bin/
  sudo chmod 755 /usr/bin/SFSCextractor.sh
  1. copy the startscript to global systemd users directory
  sudo cp [email protected] /usr/lib/systemd/user/
  1. reload systemd at userspace
  systemctl --user daemon-reload
  1. create a instance from the service for your user
  mkdir -p ~/.config/systemd/user
  systemctl --user enable SFSCextractor@$USER.service
  1. start the service or relogin
  systemctl --user start SFSCextractor@$USER.service

About

Place downloaded files from SFSC into a casefolder and extract archives, if any

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Shell 56.6%
  • JavaScript 43.4%