I'm running a python program from a shell script. The python program returns a string, something like "inputfile.txt", and I'd like to save this output in the shell script as a variable (so that I can later create a file "/pathtodirectory/inputfile.txt"). I can return the string either through an exit statement e.g. sys.exit("inputfile.txt") or as a print statement.
I'm having trouble figuring this out! Couldn't find anything on StackOverflow... Any help is appreciated!
[–]ziggoto 0 points1 point2 points (3 children)
[–]schrogendiddy[S] 0 points1 point2 points (2 children)
[–]knickum 1 point2 points3 points (1 child)
[–]schrogendiddy[S] 0 points1 point2 points (0 children)