summaryrefslogtreecommitdiffstats
path: root/cat
Commit message (Collapse)AuthorAgeFilesLines
* Rewrite virt-cat in C.Richard W.M. Jones2010-11-115-0/+590
| | | | | | | | | | | | | | | | | With changes in the core API since 1.5, virt-cat was little more than a Perl wrapper which did some command line argument processing. Thus it could easily be rewritten in C. This version also shares core command line argument processing with guestfish and guestmount, so the options have changed slightly (old-style command line *is* supported). virt-cat -a disk.img file [file ...] virt-cat -d domname file [file ...] Several other guestfish options are supported including encryption, and with the new style multiple files can be downloaded. See the man page for details.
* Move virt tools (virt-cat, virt-edit etc) into tools/ subdirectory.Richard Jones2009-10-193-291/+0
| | | | | | | | | | | | | | | | | | This moves the tool programs into a single directory: cat/* -> tools/virt-cat df/* -> tools/virt-df edit/* -> tools/virt-edit rescue/* -> tools/virt-rescue This in itself simplifies the build process because we only need one Makefile and one copy of 'run-locally'. 'run-*-locally' has become just 'run-locally' and takes an extra parameter which is the name of the tool, eg: run-locally cat [virt-cat params...] virt-inspector stays in its own directory, because this contains more than just a single Perl script.
* run-*-locally: The programs are now virt-[tool], not virt-[tool].plRichard Jones2009-10-011-1/+1
| | | | This fixes commit b488436cc54288fcae8988493749f2e6c87f274c.
* Include virt tools in EXTRA_DIST.Richard Jones2009-09-231-1/+2
| | | | | | Partially revert b488436cc54288fcae8988493749f2e6c87f274c. It turns out that automake doesn't automatically place bin_SCRIPTS in EXTRA_DIST.
* Rename virt-[tool].pl as virt-[tool]Richard Jones2009-09-232-8/+4
|
* Check return value from readlink.Richard Jones2009-09-231-1/+1
|
* Create manpage atomically.Richard Jones2009-09-231-1/+1
| | | | Don't fail with a partial file if disk full, etc.
* Replace @...@ with $(...) in these common Makefile.am files.Richard Jones2009-09-231-4/+4
|
* New tool: virt-editRichard Jones2009-09-231-2/+4
| | | | | | | | | | | | | Edit any file in a guest. This was possibly previously using guestfish, but having a separate command makes it simpler. The usage is simply: virt-edit mydomain /some/file It runs $EDITOR or vi on the file, and if the user changes it, uploads the result back to the VM.
* virt-cat: Remove some unused Perl module includes.Richard Jones2009-09-231-3/+0
|
* Remove guestfs_wait_ready (turn it into a no-op).Richard Jones2009-09-211-1/+0
| | | | | | | | | | | | | | This commit changes guestfs_launch so that it both launches the appliance and waits until it is ready (ie. the daemon communicates back to us). Since we removed the pretence that we could implement a low-level asynchronous API, the need to call launch() followed by wait_ready() has looked a bit silly. Now guestfs_wait_ready() is basically a no-op. It is left in the API for backwards compatibility. Any calls to guestfs_wait_ready() can be removed from client code.
* Convert all TABs-as-indentation to spaces.Jim Meyering2009-08-031-2/+2
| | | | | | | | | | | Do it by running this command: [exempted files are matched via .x-sc_TAB_in_indentation] git ls-files \ | pcregrep -vf .x-sc_TAB_in_indentation \ | xargs pcregrep -l '^ *\t' \ | xargs perl -MText::Tabs -ni -le \ '$m=/^( *\t[ \t]*)(.*)/; print $m ? expand($1) . $2 : $_'
* cat: Example of finding DHCP IP address of a VM.Richard Jones2009-07-171-0/+4
|
* New tool virt-cat: display a file in a virtual machine.Richard Jones2009-07-153-0/+292
This script is just a simpler way to cat a file from a VM. It is otherwise equivalent to using guestfish. virt-cat someguest /etc/fstab virt-cat someguest /var/log/messages | tail