Sophie

Sophie

distrib > Mandriva > 2010.1 > x86_64 > media > contrib-release > by-pkgid > 6d1a166ea554fd7dc3d80c54a7b12f17 > files > 19

emelfm-0.9.2.1-3mdv2010.0.x86_64.rpm

The following macros are available in the "Command:" entry 

Macros:
%f = Selected filenames in Active Directory
%F = Full pathnames of files selected in Inactive Directory
%d = Active Directory
%D = Inactive Directory
%{Prompt message} = Prompt user for input

Prefixing a command with 'x' will open an xterm to execute the command.
Prefixing a command with 'su' will open an xterm and su to root to execute the
command.
Appending an '&' to an action will cause emelFM to discard the output of the
command. (By default, emelFM will capture the output and print it to the output
window)

Examples:

  x rpm -qlip %f | less

This opens an xterm and executes an rpm query command and pipes the output
to 'less'. If the output were not piped to 'less', the xterm would exit after
the query finished and the user would not be able to see the results for very
long.

  su rpm -Uvh %f

This opens an xterm and su's to root, prompting for the root password. Then it
executes the RPM install command which would probably fail if done as a normal
user.

  tar xzvf %f -C %D &

This unpacks a tarball from the active directory into the inactive directory.
Because of the '&' at the end, emelFM will *not* capture the output.

  diff -c %f %F > %{Filename for patch:}

This runs the diff command to create a patch between the selected files,
prompting for the filename for the patch.