Sponsored Content
Top Forums Shell Programming and Scripting Automatically execute all programs in a directory Post 302428370 by pseudocoder on Wednesday 9th of June 2010 03:37:28 PM
Old 06-09-2010
Hammer & Screwdriver

Code:
$ perl -e 'print "Step 1\n"; print "Press ENTER to continue..."; $a=<STDIN>;
           print "Step 2\n"; print "Press ENTER to continue..."; $a=<STDIN>;'

 

9 More Discussions You Might Find Interesting

1. Shell Programming and Scripting

Removing files automatically from a directory after 30 days.

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

help to execute programs in sequence through batch

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 want a script to execute if the time is 12:00 automatically

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

Execute "telinit q" while programs are running ?

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

Initialization Problems - Cannot execute automatically

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

Automatically execute a software without gui at boot

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

How to i execute .rdf file oracle report automatically in cron tab unix

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

Automatically determining directory path for scripts and programs

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

Need help on how to execute several programs

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
fsc(1)								   USER COMMANDS							    fsc(1)

NAME
fsc - Fast offline compiler for the Scala 2 language SYNOPSIS
fsc [ <options> ] <source files> PARAMETERS
<options> Command line options. See OPTIONS below. <source files> One or more source files to be compiled (such as MyClass.scala). OPTIONS
The offline compiler supports all options of scalac plus the following: -reset Reset compile server caches. -shutdown Shut down the compilation daemon. The daemon attempts to restart itself as necessary, but sometimes an explicit shutdown is required. A common example is if jars on the class path have changed. -server <hostname:portnumber> Specify compile server host at port number. Usually this option is not needed. Note that the hostname must be for a host that shares the same filesystem. -J <flag> Pass <flag> directly to the Java VM for the compilation daemon. DESCRIPTION
The fsc tool submits Scala compilation jobs to a compilation daemon. The first time it is executed, the daemon is started automatically. On subsequent runs, the same daemon can be reused, thus resulting in a faster compilation. The tool is especially effective when repeatedly compiling with the same class paths, because the compilation daemon can reuse a compiler instance. The compilation daemon is smart enough to flush its cached compiler when the class path changes. However, if the contents of the class path change, for example due to upgrading a library, then the daemon should be explicitly shut down with -shutdown. Note that the scala script runner will also use the offline compiler by default, with the same advantages and caveats. EXAMPLE
The following session shows a typical speed up due to using the offline compiler. > fsc -verbose -d /tmp test.scala ... [Port number: 32834] [Starting new Scala compile server instance] [Classpath = ...] [loaded directory path ... in 692ms] ... [parsing test.scala] ... [total in 943ms] > fsc -verbose -d /tmp test.scala ... [Port number: 32834] [parsing test.scala] ... [total in 60ms] > fsc -verbose -d /tmp test.scala ... [Port number: 32834] [parsing test.scala] ... [total in 42ms] > fsc -verbose -shutdown [Scala compile server exited] ENVIRONMENT
JAVACMD Specify the java command to be used for running the Scala code. Arguments may be specified as part of the environment variable; spaces, quotation marks, etc., will be passed directly to the shell for expansion. JAVA_HOME Specify JDK/JRE home directory. This directory is used to locate the java command unless JAVACMD variable set. JAVA_OPTS Specify the options to be passed to the java command defined by JAVACMD. With Java 1.5 (or newer) one may for example configure the memory usage of the JVM as follows: JAVA_OPTS="-Xmx512M -Xms16M -Xss16M" With GNU Java one may configure the memory usage of the GIJ as follows: JAVA_OPTS="--mx512m --ms16m" EXIT STATUS
fsc returns a zero exit status if it succeeds to compile the specified input files. Non zero is returned in case of failure. AUTHOR
Written by Martin Odersky and other members of the Scala team. REPORTING BUGS
Report bugs to http://lampsvn.epfl.ch/trac/scala. COPYRIGHT
This is open-source software, available to you under a BSD-like license. See accomponying "copyright" or "LICENSE" file for copying condi- tions. There is NO warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. SEE ALSO
sbaz(1), scala(1), scalac(1), scaladoc(1), scalap(1) version 0.4 January 18, 2007 fsc(1)
All times are GMT -4. The time now is 12:52 PM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy