07-14-2013
Quote:
Originally Posted by
RudiC
AFAIK a self extracting archive is an executeable file that, when run, put the files contained in it into the respective target directories.
You can't have an executeable program for *nix running on Windows nor vice versa.
Thank you I didn't realize that.
Quote:
Originally Posted by
jim mcnamara
The file format of executable images varies across platforms, with flavors named: COFF, PE, ELF, Mach-O, and others.
COFF is an old Unix format (from MS-DOS and Xenix, an MS Unix in the 1980's) that MS now has morphed into the Portable Executable (PE) format -- a very much changed format. The Extensible Firmware Interface (EFI) defines PE as the standard format in EFI environments.
Mach-O is the format on OS X boxes.
Linux executables are ELF format. Solaris 10 uses ELF as well on both sparc and x86 platforms. PE+ and ELF64 are the formats in 64 bit format. ELF64 is usually just called ELF, which is confusing.
This is what RudiC is talking about. It is the same idea as 'why does a Windows virus not infect a linux system'. Answer: the file format is garbage as far as the OS image activator can tell.
Thank you for the detailed explanation.
Quote:
Originally Posted by
hicksd8
As already said, self-extracting implies an executable program which you can just run on either platform and it will unpack. On x86 this is not impossible but would need thorough testing on the platforms involved.
However, many times I have found that creating a 'tar' file on Sys V followed by 'compress' (creating a .Z), followed by 'ftp' to a Windows platform, can be unpacked by WinZip or WinRAR quite easily. Again, testing on the specific platforms and specific tar and zip versions is necessary.
It's then possible to script the operation both on Sys V and Windows to unpack the data after detecting which platform it is on and calling the correct utility to unpack the data.
Hope that helps.
What program creates .Z files? Is that 7z?
9 More Discussions You Might Find Interesting
1. Linux Benchmarks
FYI:
Here is the archive site for the original Linux benchmarks (1994 - 1996)
http://linux.silkroad.com/
Neo (3 Replies)
Discussion started by: Neo
3 Replies
2. UNIX for Dummies Questions & Answers
Can I extract files from an archive file (tar), where the filename includes the full directory path, to a different directory?
For example the archive files may have a filename of
/SrcFiles/XXX/filename.dat
and I want to extract it to /SrcFiles/YYY/filename.dat. Since the archive file was... (1 Reply)
Discussion started by: nmalencia
1 Replies
3. Shell Programming and Scripting
Hi All,
I would like to extract specific file from a zip archive.
I have a zip archive "sample.zip".
sample.zip contains few text files and images... text1.txt, text2.txt, pic.jpg etc...
I need to read specific file "text2.txt" from "sample.zip" WITHOUT EXTRACTING the zip file.
... (4 Replies)
Discussion started by: sridharg
4 Replies
4. Linux
What are the differences, advantages, and disadvantages? (1 Reply)
Discussion started by: Advice Pro
1 Replies
5. Shell Programming and Scripting
Hi there,
I have one huge archive (it's a system image).
I need sometime to create smaller archives with only one or two file from my big archive.
So I'm looking for a command that extracts files from an archive and pipe them to another one.
I tried the following :
tar -xzOf oldarchive.tgz... (5 Replies)
Discussion started by: chebarbudo
5 Replies
6. Linux
Can anybody suggest me software to backup Linux server and to make them boot able (1 Reply)
Discussion started by: Vit0_Corleone
1 Replies
7. Homework & Coursework Questions
Use and complete the template provided. The entire template must be completed. If you don't, your post may be deleted!
1. The problem statement, all variables and given/known data:
Hi there,
I wish to create a single .tar file of the current directory but have literally no idea on where to... (8 Replies)
Discussion started by: Banned
8 Replies
8. Shell Programming and Scripting
Requirement:
Under fuse application we have placeholders called containers;
Every container has their logs under:
<container1>/data/log/fuse.log
<container1>/data/log/fuse.log.1
<container1>/data/log/fuse.log.XX
<container2>/data/log/fuse.log... (6 Replies)
Discussion started by: Arjun Goswami
6 Replies
9. UNIX for Beginners Questions & Answers
Hi, totally new to linux base using windows when started learning and using computers.
but i remember that one pc was there , look alike windows desktop, but could not do the task as windows just click and open and view edit etc. But, you could do a little differently even saving in and opening... (8 Replies)
Discussion started by: jraju
8 Replies
LEARN ABOUT CENTOS
ptargrep
PTARGREP(1) User Contributed Perl Documentation PTARGREP(1)
NAME
ptargrep - Apply pattern matching to the contents of files in a tar archive
SYNOPSIS
ptargrep [options] <pattern> <tar file> ...
Options:
--basename|-b ignore directory paths from archive
--ignore-case|-i do case-insensitive pattern matching
--list-only|-l list matching filenames rather than extracting matches
--verbose|-v write debugging message to STDERR
--help|-? detailed help message
DESCRIPTION
This utility allows you to apply pattern matching to the contents of files contained in a tar archive. You might use this to identify all
files in an archive which contain lines matching the specified pattern and either print out the pathnames or extract the files.
The pattern will be used as a Perl regular expression (as opposed to a simple grep regex).
Multiple tar archive filenames can be specified - they will each be processed in turn.
OPTIONS
--basename (alias -b)
When matching files are extracted, ignore the directory path from the archive and write to the current directory using the basename of
the file from the archive. Beware: if two matching files in the archive have the same basename, the second file extracted will
overwrite the first.
--ignore-case (alias -i)
Make pattern matching case-insensitive.
--list-only (alias -l)
Print the pathname of each matching file from the archive to STDOUT. Without this option, the default behaviour is to extract each
matching file.
--verbose (alias -v)
Log debugging info to STDERR.
--help (alias -?)
Display this documentation.
COPYRIGHT
Copyright 2010 Grant McLean <grantm@cpan.org>
This program is free software; you can redistribute it and/or modify it under the same terms as Perl itself.
perl v5.16.3 2013-05-12 PTARGREP(1)