SHAR(1) General Commands Manual SHAR(1)NAME
shar - shell archiver
SYNOPSIS
shar file ...
EXAMPLES
shar *.c >s # Collect C programs in shell archive
sh <s # Extract files from a shell archive
DESCRIPTION
The named files are collected together into a shell archive written onto standard output. The individual files can be extracted by redi-
recting the shell archive into the shell. The advantage of shar over ar is that shar archives can be read on almost any UNIX system,
whereas numerous, incompatible versions of ar are in widespread use. Extracting the files from a shell archive requires that sed be acces-
sible.
SEE ALSO sh(1), unshar(1).
SHAR(1)
Check Out this Related Man Page
SHAR(1) BSD General Commands Manual SHAR(1)NAME
shar -- create a shell archive of files
SYNOPSIS
shar file ...
DESCRIPTION
shar writes an sh(1) shell script to the standard output which will recreate the file hierarchy specified by the command line operands.
Directories will be recreated and must be specified before the files they contain (the find(1) utility does this correctly).
shar is normally used for distributing files by ftp(1) or mail(1).
SEE ALSO compress(1), mail(1), uuencode(1), tar(1)BUGS
shar makes no provisions for special types of files or files containing magic characters.
EXAMPLES
To create a shell archive of the program ls(1) and mail it to Rick:
cd ls
shar `find . -print` | mail -s "ls source" rick
To recreate the program directory:
mkdir ls
cd ls
...
<delete header lines and examine mailed archive>
...
sh archive
HISTORY
The shar command appears in 4.4BSD.
SECURITY CONSIDERATIONS
It is easy to insert trojan horses into shar files. It is strongly recommended that all shell archive files be examined before running them
through sh(1). Archives produced using this implementation of shar may be easily examined with the command:
egrep -v '^[X#]' shar.file
4.4BSD June 6, 1993 4.4BSD
Hello Everyone!
A simple question:
Do you think that Red Hat Linux will be obtaining a MAJOR share of the desktop operating systems on personal computers in near future?
1. Yes
2. No
3.Not Sure
Thanks
JAM (13 Replies)
Dear all,
Anyone could help to explain me about ISM? I use SunOS 5.10 and have 3 questions here:
1. Is it true that the ISM value will be set to TRUE by default on either global or container box of Solaris?
2. Is it true if the ISM is TRUE, then the swap to disk (virtual memory) won't work... (20 Replies)
Hi
I have a problem with NFS sharing on solaris 10, the problem simply with write permission, after do the following command, the folder still not writable from machine 2 :
on machine 1 (10.10.10.32) :
share -F nfs -o rw /u01/portalrepository/
on machine 2 (10.10.10.31) :
mount -F nfs... (35 Replies)
i have to shared a variable between two different c programs with shared memory and i do these:
int main() {
int a=5,b=7;
int buffer;
int *point;
int shmid;
shmid=shmget(IPC_PRIVATE , sizeof(buffer),0666);
point=(int *)shmat(shmid,NULL,0);
point=a;
... (21 Replies)
Hello,
I am not that experienced with Linux, and I am currently facing some issues.
The application I'm working on uses hundreds of threads. To optimize the memory usage, I am putting all my data inside a shared object (so).
The steps for this are as follows:
1. a C file (generated... (17 Replies)
I am having an issue with getting the proper group settings on NFS-shared directories.
NFS server, NFServe, nfs-shares hundreds of project directories...running Solaris 10 latest patches/updates.
SAS server, SAServe, statistical analysis server running on RedHat 7 with latest kernel/patches/etc.... (14 Replies)
This is a DEMO shell script to generate a simple graticule and plot inside it...
Apologies for any typos...
it is another building block along with my other two shell uploads recently to start a semi_serious project of an Terminal_AudioScope...
The fist upload I posted recently was to show... (83 Replies)
There must be thousands of one-off solutions scattered around this forum. GNU Date is so handy because it's general but if they're asking they probably don't have it. We have some nice scripts but they tend to need dates formatted in a very particular way.
This is a rough approximation which... (18 Replies)
Hi all,
I have 3 servers, rx2600, rx2600, and rx2660.
I have another x86 server running on Suse, and create a shared folder named /public
From 1 of the rx2600 server I can mount that shared folder :
intaqa:/>mount 10.1.2.82:/public /bkup
intaqa:/>cd /bkup
But from 2 others server I... (29 Replies)
Hello!
i am having a ubuntu server with two empty disks and connected software raid1 to it.
I am having /mnt/raid folder which i created to mount it.
SO should i now make a share folder inside that or what? I ama bit confused when a raid is present. (27 Replies)
Good Morning,
I have 2 Solaris 9 machines sharing a NAS, and need to have users to be able to log in from the 2nd machine and get to all of their files on the NAS that were created on the 1st machine.
So far its working ok, but when users log in to the second machine, their user IDs show... (20 Replies)
I am running AIX 7.1 and currently we have samba 3.6.25 installed on the server. As it stands some AIX folders are shared that can be accessed by certain Windows users.
The problem is that since Windows 10 the guest feature no longer works so users have to manually type in their Windows login/pwd... (14 Replies)