10 More Discussions You Might Find Interesting
1. UNIX for Dummies Questions & Answers
Hello,
I have several hundred subdirectories which contain input files for a binary executable. I need to get into each of the subdirectories, run the executable and then move to the next one and repeat the process. What is the best way to do this?
Arbitrarily my file structures look like... (3 Replies)
Discussion started by: Gussifinknottle
3 Replies
2. Shell Programming and Scripting
how to run the script below
* * * * * /usr/bin/wget -O - -q "http://example.com/scheduler/cron"
when i run the script, the error message show as below:
$ * * * * * /usr/bin/wget -O - -q "http://website.com/?q=admin/settings/scheduler/cron"
-sh: CHANGELOG.txt: not found
$ 30 15 * * *... (11 Replies)
Discussion started by: dolbyater
11 Replies
3. UNIX for Advanced & Expert Users
Hello,
I need to figure out the minimum OS version needed to run some executable.
For the following OS: Linux, AIX, Solaris. For example how do I know the minimum OS version for /bin/ls ? "file" command does not give me much information. There are some tools that are helpful for understanding... (4 Replies)
Discussion started by: +Yan
4 Replies
4. Shell Programming and Scripting
I would like to make a script that I can see if the file is executable. If it is executable then it needs to run. Otherwise, if it is not executable the file needs to be edited, and run agian.
I hope you understand what i mean. :)
Thanks for the netherlands (4 Replies)
Discussion started by: dennisbest85
4 Replies
5. Shell Programming and Scripting
All,
I am pretty new to Unix and still in the learning curve :) I have a simple requirement for which I did not get an answer yet (Atleast I do not know how to keyword the search for my requirement!!!).
I have an executable script my.script1 in a folder /data/misc/scripts/dev, which when... (5 Replies)
Discussion started by: bharath.gct
5 Replies
6. Shell Programming and Scripting
I need to know how to have a BASH script run every time Firefox is launched, what is the simplest way to do this? (1 Reply)
Discussion started by: glev2005
1 Replies
7. Shell Programming and Scripting
Hi,
I have an executable file that has a rather long and tedious process to complete. How would I launch the executable using the shell, and then exit the shell while leaving the executable to run in the background? (1 Reply)
Discussion started by: pcwiz
1 Replies
8. Shell Programming and Scripting
as i said before i'm a beginner in shell programming and i have two questions:
how to run an executable file in shell scripts like for example let's say the file called "prog.exe", what's the shell command to run this file?
also how can i make the shell file an executable file (if it is... (5 Replies)
Discussion started by: _-_shadow_-_
5 Replies
9. UNIX for Dummies Questions & Answers
I have installed the Darwin Calendar Server on my Mac and got it working.
To start the server I open a Finder window on my mac and click the UNIX executable called RUN.
In order to start the server automatically on bootup I used LINGON to add a startup Daemon to call "RUN -d". When I reboot... (6 Replies)
Discussion started by: thylacine
6 Replies
10. UNIX for Dummies Questions & Answers
I get the following error message when I tried to run prstat on my unix box:
wolf@SLK1 10> prstat
prstat: cannot find/execute "prstat" in ISA subdirectories
*Basically I was trying to run a prstat on one box but I could see it didn't have the process so I copied it from another box and... (1 Reply)
Discussion started by: fusion99
1 Replies
ar(1) General Commands Manual ar(1)
Name
ar - archive and library maintainer
Syntax
ar option [ posname ] archive file ...
Description
The archiver ar maintains groups of files as a single archive file. This utility is generally used to create and update library files that
the link editor uses; however, you can use the archiver for other similar purposes. This version uses a portable ASCII-format archive that
you can use on various machines that run UNIX. If you have an archive that uses an older format, see
Options
This section describes the options and suboptions that you can use with the ar utility. Suboptions must be specified with options. Fol-
lowing is a list and description of the options:
d Deletes the specified files from the archive file.
r Replaces the specified files in the archive file. If you use the suboption u with r, the archiver only replaces those files that
have last-modified dates later than the archive files. If you use a positioning character (from the set abi) you must specify the
posname argument to tell the archiver to put the new files after (a) or before (b or i). Otherwise, the archiver puts new files at
the end of the archive.
q Appends the specified files to the end of the archive file. The archiver does not accept suboption positioning characters with the
q option. It also does not check whether the files you want to add already exist in the archive. Use the q option only to avoid
quadratic behavior when you create a large archive piece by piece.
t Prints a table of contents for the files in the archive file. If you do not specify any filenames, the archiver builds a table of
contents for all files. If you specify filenames, the archiver builds a table of contents only for those files.
p Prints the specified files from the archive.
m Moves the specified files to the end of the archive. If you specify a positioning character, you must also specify the posname (as
in option r) to tell the archiver where to move the files.
x Extracts the specified files from the archive. If you do not specify any filenames, the archiver extracts all files. When it
extracts files, the archiver does not change any file. Normally, the last-modified date for each extracted file shows the date when
someone extracted it; however, when you use o, the archiver resets the last-modified date to the date recorded in the archive.
s Makes a symbol definition (symdef file) as the first file of an archive. This file contains a hash table of ranlib structures and a
corresponding string table. The symdef file's name is based on the byte ordering of the hash table and the byte ordering of the
file's target machine. Files must be consistent in their target byte ordering before the archiver can create a symdef file. If you
change the archive contents, the symdef file becomes obsolete because the archive file's name changes. If you specify s, the
archiver creates the symdef file as its last action before finishing execution. You must specify at least one other archive option
(m, p, q, r, or t) when you use the s option. For UMIPS-V, archives include member objects based on the definition of a common
object only. For UMIPS-BSD, they define the common object, but do not include the object.
v Gives a file-by-file description as the archiver makes a new archive file from an old archive and its constituent files. When you
use this option with t, the archiver lists all information about the files in the archive. When you use this option with p, the
archiver precedes each file with a name.
c Suppresses the normal message that the archiver prints when it creates the specified archive file. Normally, the archiver creates
the specified archiver file when it needs to.
l Places temporary files in the local directory. If the l option is not used then the value of the environment symbol, TMPDIR, is
used as the directory for temporary files. If TMPDIR is not defined or if the directory it references is not writable then /tmp is
used.
The suboptions do these things:
a Specifies that the file goes after the existing file (posname). Use this suboption with the m or r options.
b Specifies that the file goes before the existing file (posname). Use this suboption with the m or r options.
i Specifies that the file goes before the existing file (posname). Use this suboption with the m or r options.
o Forces a newly created file to have the last-modified date that it had before it was extracted from the archive. Use this suboption
with the x option.
u Prevents the archiver from replacing an existing file unless the replacement is newer than the existing file. This option uses the
UNIX system last modified date for this comparison. Use this suboption with the r option.
Restrictions
If you specify the same file twice in an argument list, it can appear twice in the archive file.
The o option does not change the last-modified date of a file unless you own the extracted file or you are the superuser.
This command truncates filenames to 15 characters.
Files
/tmp/v* temporaries
See Also
lorder(1), ld(1), odump(1), ranlib(1), ranhash(3x), ar(5), arcv(8)
RISC ar(1)