06-09-2010
Automatically execute all programs in a directory
Hello.
The last days I extended an open-source C++ library by some faster functions. This library provides a lot of short test programs which guarantee that the library works exactly.
The compilation of each test works in a Makefile automatically.
What I need is a shell script which executes all the build programs one after another. Furthermore I would like to get prompt to press the return key between two program executions.
Since I have nearly no experience with unix shell programming I would be glad if anyone could tell me how to do this.
Thanks in advance.
Regards
Max
9 More Discussions You Might Find Interesting
1. Shell Programming and Scripting
Hello;
I have a directory that is collecting log and act files. I need to write a script that will remove these files once they are 30 days old. I have read through a number of threads on this site that have given me a great deal of information. However I have what seems to be a unique... (7 Replies)
Discussion started by: justinb_155
7 Replies
2. Shell Programming and Scripting
I need help to create batch file .
I want to run some programs in sequence in batch mode . I have one file which contains the name of program and command
The test.bat file contain this data
stsrun -v devel area1.exp
stsrun -v devel prime1.exp
stsrun -v devel treat.exp
Please help... (1 Reply)
Discussion started by: getdpg
1 Replies
3. UNIX for Advanced & Expert Users
i write a script for displaying a xmessage.But i want it to run automatically for every one hour.can any one help me. (2 Replies)
Discussion started by: lakshmananindia
2 Replies
4. AIX
Hi,
I want to make changes to inittab file and reread it using "telinit q" to make changes effective immediately. Is it safe to do that while important apps are running ?
thanks
Vilius (1 Reply)
Discussion started by: vilius
1 Replies
5. UNIX for Dummies Questions & Answers
Figured out the first half but am still having a little trouble shooting problem with the Initialization Files. I am working in bash on a remote server.
When I log on I am seeing the correct prompt but right before that I am also seeing this
the id -u integer expression expected is what... (2 Replies)
Discussion started by: moonunit
2 Replies
6. Fedora
hi all,
this is my first post here...i hope that this is the correct section to write my question.
I have a distro linux without gui, only text mode.
So, it's possible run automatically a command or a program as "top" or "ping" and get the result on the main shell , after the boot and after... (6 Replies)
Discussion started by: gangiaemi
6 Replies
7. UNIX for Advanced & Expert Users
Hi,
I want to execute .rdf file which uses oracle report in crontab ..Can you please help me out how to schedule it crontab.as it is a rdf file
Please give any suggestions regarding the above issue. (0 Replies)
Discussion started by: soumyamishra
0 Replies
8. Shell Programming and Scripting
I have some C++ code in the following directory structure
/home/chrisd/tatsh/trunk/hstmy/
├── baseLib
├── bin
│ ├── awk
│ ├── bash
│ ├── diag
│ ├── ksh
│ │ └── TAG201011
│ ├── old
│ ├── perl
│ ├── prog
│ ├── py
│ └── tcsh
├── docs
├── fortran
├── others... (0 Replies)
Discussion started by: kristinu
0 Replies
9. Homework & Coursework Questions
1. The problem statement, all variables and given/known data:
Get each of these programs to run. Prove that you've done this(use script). Give a description of each program along with sample executions.
These are the exact programs we were given.
2. Relevant commands, code, scripts,... (11 Replies)
Discussion started by: FaTaL
11 Replies
SMRSH(8) System Manager's Manual SMRSH(8)
NAME
smrsh - restricted shell for sendmail
SYNOPSIS
smrsh -c command
DESCRIPTION
The smrsh program is intended as a replacement for sh for use in the ``prog'' mailer in sendmail(8) configuration files. It sharply limits
the commands that can be run using the ``|program'' syntax of sendmail in order to improve the over all security of your system. Briefly,
even if a ``bad guy'' can get sendmail to run a program without going through an alias or forward file, smrsh limits the set of programs
that he or she can execute.
Briefly, smrsh limits programs to be in a single directory, by default /etc/smrsh, allowing the system administrator to choose the set of
acceptable commands, and to the shell builtin commands ``exec'', ``exit'', and ``echo''. It also rejects any commands with the characters
``', `<', `>', `;', `$', `(', `)', `
' (carriage return), or `
' (newline) on the command line to prevent ``end run'' attacks. It allows
``||'' and ``&&'' to enable commands like: ``"|exec /usr/local/bin/procmail -f- /etc/procmailrcs/user || exit 75"''
Initial pathnames on programs are stripped, so forwarding to ``/usr/ucb/vacation'', ``/usr/bin/vacation'', ``/home/server/mydir/bin/vaca-
tion'', and ``vacation'' all actually forward to ``/etc/smrsh/vacation''.
System administrators should be conservative about populating the /etc/smrsh directory. Reasonable additions are vacation(1), procmail(1),
and the like. No matter how brow-beaten you may be, never include any shell or shell-like program (such as perl(1)) in the /etc/smrsh
directory. Note that this does not restrict the use of shell or perl scripts in the sm.bin directory (using the ``#!'' syntax); it simply
disallows execution of arbitrary programs.
FILES
/etc/smrsh - directory for restricted programs
SEE ALSO
sendmail(8)
$Date: 2002/04/25 13:33:40 $ SMRSH(8)