partimage imginfo in batch mode?

Other questions, messages

Moderator: feffer

Post Reply
Posts: 2
Joined: Wed Dec 05, 2007 5:23 pm

partimage imginfo in batch mode?

Post by steph2607 » Sat Jan 29, 2011 2:21 pm


Is it possible to get imginfo in batch mode?

% partimage imginfo sauvegarde.000
gives a semi-graphic return.

I would like to get text in console.

Is it possible?

% partimage -b imginfo sauvegarde.000
echo $?
returns 0 if it is a valid partimage image and 1 if it isn't.
That's all.


Posts: 126
Joined: Tue Mar 17, 2009 4:30 am

Post by feffer » Sat Jan 29, 2011 6:32 pm

This post might be helpful. I believe imginfo only provides metadata like size, fs type, date created, etc, but no details about the files therein.

Post Reply