Non-interactive mode

Using PhotoRec to recover lost data
Forum rules
When asking for technical support:
- Search for posts on the same topic before posting a new question.
- Give clear, specific information in the title of your post.
- Include as many details as you can, MOST POSTS WILL GET ONLY ONE OR TWO ANSWERS.
- Post a follow up with a "Thank you" or "This worked!"
- When you learn something, use that knowledge to HELP ANOTHER USER LATER.
Before posting, please read
Post Reply
Posts: 2
Joined: 29 Dec 2014, 16:12

Non-interactive mode

#1 Post by opalenzuela » 29 Dec 2014, 16:25

I've just discovered this great tool, and I could go through my old laptop's harddrive to recover an accidentally deleted backup that I've thought lost for good until now.

However, I believe this program (PhotoRec) could be even more powerful with an non-interactive execution mode: all the options specified by launch parameters, and/or taking default values for each option. This could help many users with less technical knowledge to perform a recovery from a "cheat list" of oneliners.

Sponsored links

User avatar
Site Admin
Posts: 4292
Joined: 18 Feb 2012, 15:08
Location: Le Perreux Sur Marne, France

Re: Non-interactive mode

#2 Post by cgrenier » 29 Dec 2014, 22:42

Well, if you press enter each time, you have the default options...

Posts: 2
Joined: 29 Dec 2014, 16:12

Re: Non-interactive mode

#3 Post by opalenzuela » 30 Dec 2014, 08:15

Yes, but still it would be required the user's intervention, which in fact makes no difference in the real program execution.

In the Linux/Unix world it's a big deal to solve problems with just one line of code - no matter how long and cryptic it is - because that lets you execute it as part of a more complex process, and controlling if each step was successful or not.

And it's not only about using default values, but also to be able to specify all the relevant values (filesystem, for instance) from the command line.

Post Reply

Who is online

Users browsing this forum: No registered users and 2 guests