LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Programming (https://www.linuxquestions.org/questions/programming-9/)
-   -   How to process the output folder created by one script (https://www.linuxquestions.org/questions/programming-9/how-to-process-the-output-folder-created-by-one-script-932324/)

prravin1 03-02-2012 06:20 AM

How to process the output folder created by one script
 
I have a script (first.sh) which creates a output folder at a particular location.Now a second script (second.sh) need the location of this output folder as it need to process the data into it.

Keep in mind that the first.sh script will generate the output folder as per the user needs.(as per path set by the user).

Now i need the second.sh script to find the path of the output folder generated by first.sh script and then it should enter into it for processing some data?

I need the logic for the above problem. Also remember that the path for output folder always changes and the second.sh script should be able to find the exact path and output folder.

first.sh /add/sub/output_folder (user decides the output path)

second.sh
It should find the "/add/sub/output_folder" location

Hope it helps.Plz help me.

druuna 03-02-2012 06:46 AM

Answer is given in the following thread: Selecting output as a directory path (post #5 and beyond).

ta0kira 03-05-2012 06:03 PM

Quote:

Originally Posted by prravin1 (Post 4616753)
I need the logic for the above problem. Also remember that the path for output folder always changes and the second.sh script should be able to find the exact path and output folder.

I recommend having it explicitly specified to both scripts up front, then. Fewer things are more annoying than automation that doesn't work like it's supposed to, especially when there is a trivial "manual" procedure that gets it right every time (like those faucets with the IR sensors that don't work correctly.)
Kevin Barry


All times are GMT -5. The time now is 09:04 AM.