bugy / script-server

Web UI for your scripts with execution management
Other
1.61k stars 249 forks source link

Import of CSV #462

Closed billybenson closed 1 year ago

billybenson commented 3 years ago

Hi - is there a way to import a csv so it can be used when executing the script? I want to use data in the csv for my script. How is best to do this? Thanks

bugy commented 3 years ago

Hi @billybenson you could make an "upload" parameter: https://github.com/bugy/script-server/wiki/Script-config#file_upload Then a user would be able to upload the csv file The script would get the path to the uploaded file as an argument

billybenson commented 3 years ago

Hi - thanks for replying. But then how do we use this CSV as a variable in a Powershell script if the temp directory changes ?

bugy commented 3 years ago

The shell script will always get an absolute path to the new uploaded file

billybenson @.***> schrieb am Mi., 16. Juni 2021, 15:19:

Hi - thanks for replying. But then how do we use this CSV as a variable in a Powershell script if the temp directory changes ?

— You are receiving this because you commented. Reply to this email directly, view it on GitHub https://github.com/bugy/script-server/issues/462#issuecomment-862295036, or unsubscribe https://github.com/notifications/unsubscribe-auth/AAJXPJJYGSFNQZVGRDNEHGLTTCCC3ANCNFSM46Y47BQA .

bugy commented 3 years ago

@billybenson did you manage to find a way how to use the csv parameter?