06-30-2001
Sorry that you've got to wait 3 hours, I assumed that you were running your own Unix box.
Try copying the following to a file called myscript
#--------
#!/bin/sh
mkdir temp
cp * temp
cd temp
ls
#----------
Next you should make the script executable: "chmod o+x myscript", if you don't make the file executable then you'll need to type "sh myscript" to execute the script.
If you don't want to add the file to your path then you'll need to type ./myscript from the scripts directory.
The path can be find by typing "echo $PATH"
Andy Hibbins
8 More Discussions You Might Find Interesting
1. Post Here to Contact Site Administrators and Moderators
I have created a small FAQ for the "Unix for Dummies" forum.
Hopefully this will be useful, as there are questions which are asked (and answered) repeatedly.
<A HREF="http://www.droflet.net/unix_dot_com_faq.html">http://www.droflet.net/unix_dot_com_faq.html (0 Replies)
Discussion started by: PxT
0 Replies
2. Shell Programming and Scripting
Hi all.
iam new to this and i want to learn perl
Any good website out there ??
anything will do
thanks
:( (1 Reply)
Discussion started by: perleo
1 Replies
3. News, Links, Events and Announcements
A goofy UNIX test:
http://www.majon.com/cgi-bin/IQ?Q=unix
WARNING: ANSWERS ARE BELOW!!!!
IF YOU WANT TO DO THE TEST BEFORE SEEING THE ANSWERS, DON"T READ FURTHER ;) (13 Replies)
Discussion started by: Neo
13 Replies
4. Solaris
Is there one command that will display all system information on a Solaris host running Solaris 8? System information such as model, memory, CPU, disk space etc. etc. (2 Replies)
Discussion started by: mita
2 Replies
5. UNIX for Dummies Questions & Answers
I want to know data about
1. Overview
2. Process Management
3. Memory Management
4. File System Management
5. Secondary Storage Management
6. Protection and Security Systems
of UNIX OS
Thank Alot. (1 Reply)
Discussion started by: coolmara04
1 Replies
6. UNIX for Dummies Questions & Answers
Please help to answer some highlighted question below.
1. How to create more than 1 partition in a single hard disk?
2. How to format the created partition to be viewable like in windows C: or D: ?
3. How to use pen drive in unix environment?
4. How to find a file starting with... (8 Replies)
Discussion started by: jimmyysk
8 Replies
7. UNIX for Dummies Questions & Answers
Hello:
I am a very new Newbie. This is not a homework question.
The assignment question was actually on the use of the 2 different inputs 'read' and 'cat' ... that I know and turned in an hour ago. I don't need help with that. My question, like I said, probably sounds really dumb to most of... (4 Replies)
Discussion started by: ZaraJC
4 Replies
8. Programming
Hi.
I wrote a small programm which shows me display's refresh rate
#include "stdafx.h"
#include "windows.h"
#include "iostream"
using namespace std;
int _tmain(int cout)
{
HDC hDCScreen = GetDC(NULL);
int RefreshFrequency = GetDeviceCaps(hDCScreen, VREFRESH);
ReleaseDC(NULL, hDCScreen);... (1 Reply)
Discussion started by: urello
1 Replies
GZEXE(1) General Commands Manual GZEXE(1)
NAME
gzexe - compress executable files in place
SYNOPSIS
gzexe name ...
DESCRIPTION
The gzexe utility allows you to compress executables in place and have them automatically uncompress and execute when you run them (at a
penalty in performance). For example if you execute ``gzexe /usr/bin/gdb'' it will create the following two files:
-rwxr-xr-x 1 root root 1026675 Jun 7 13:53 /usr/bin/gdb
-rwxr-xr-x 1 root root 2304524 May 30 13:02 /usr/bin/gdb~
/usr/bin/gdb~ is the original file and /usr/bin/gdb is the self-uncompressing executable file. You can remove /usr/bin/gdb~ once you are
sure that /usr/bin/gdb works properly.
This utility is most useful on systems with very small disks.
OPTIONS
-d Decompress the given executables instead of compressing them.
SEE ALSO
gzip(1), znew(1), zmore(1), zcmp(1), zforce(1)
CAVEATS
The compressed executable is a shell script. This may create some security holes. In particular, the compressed executable relies on the
PATH environment variable to find gzip and some standard utilities (basename, chmod, ln, mkdir, mktemp, rm, sleep, and tail).
BUGS
gzexe attempts to retain the original file attributes on the compressed executable, but you may have to fix them manually in some cases,
using chmod or chown.
GZEXE(1)