08-07-2008
Learning Tips - UNIX Shell Script
Can any one please provide a fast learning tips to learn UNIX shell scripting?
Thanks,
Gov
8 More Discussions You Might Find Interesting
1. News, Links, Events and Announcements
A list with sites that have a good tips to Unix System Administrator :
www.samag.com
www-1.ibm.com/servers/aix/products/aixos/whitepapers/aixmapping.html
www.science.uva.nl/pub/solaris/solaris2/index.html
www.spec.org
Witt (0 Replies)
Discussion started by: witt
0 Replies
2. UNIX for Dummies Questions & Answers
Hi.
I've just started to get into UNIX.
Researched on the Net, found out that most of the UNIX variants are not offered online.
1. Any of you guys know where I could obtain them on the Net? or anywhere at all?
2. Does learning a UNIX variant enough to cover an understanding of other UNIX... (6 Replies)
Discussion started by: ninelives1980
6 Replies
3. UNIX for Dummies Questions & Answers
Hi All,
I am relatively new to UNIX.
I know some basic commands.
I am learning to write shell scripts.
My first aim is to connect to a Data Base via shell script.
Any ideas on this?
Any links, docs which will tell me about scripting??
Thanks
VEN (1 Reply)
Discussion started by: VENC22
1 Replies
4. Shell Programming and Scripting
hello everyone, i am still trying to get this script to work, but with no luck. It is a little beyond my knowledge of scripting at the moment. The beginner book i have has an exercise listed that asks me to write a script tha allows for user input.
For example " what is your name: " and then you... (3 Replies)
Discussion started by: bebop1111116
3 Replies
5. Shell Programming and Scripting
Hello everyone:
I am in the process of developing a shell script that will help me do the following:
1. I will backup to a mounted drive creating a folder for each day
2. After 45 days the first backup needs to be deleted, now, this has to happen everyday after I hit 45 days for the first... (1 Reply)
Discussion started by: iNetForce
1 Replies
6. UNIX for Dummies Questions & Answers
Hi guys
I want o learn and understand shell scripting real good, Ive got already some background
Due to the fact that there is ton of books with these theme, can you recommend me some good book with with examples explanations, pls no theoretical books :D
Thxs (3 Replies)
Discussion started by: kl1ngac1k
3 Replies
7. UNIX Desktop Questions & Answers
I am trying to learn Shell scripting in UNIX. Could Any one please suggest on how to get UNIX account or any other free stimulator available for download on which I can practice Unix shell script?
Thanks,
sam70 (9 Replies)
Discussion started by: sam70
9 Replies
8. Shell Programming and Scripting
Hi guys,
I am currently working as a system administration engineer, administering telecom applications on linux/unix platforms.
I want to learn new things and improve the ones that i have and for this i though to really work on some project or something but i lack of ideas.
I want to be... (2 Replies)
Discussion started by: capitanui
2 Replies
LEARN ABOUT MOJAVE
jrunscript
jrunscript(1) General Commands Manual jrunscript(1)
NAME
jrunscript - command line script shell
SYNOPSIS
jrunscript [ options ] [ arguments... ]
PARAMETERS
options
Options, if used, should follow immediately after the command name.
arguments
Arguments, if used, should follow immediately after options or command name.
DESCRIPTION
jrunscript is a command line script shell. jrunscript supports both an interactive (read-eval-print) mode and a batch (-f option) mode of
script execution. This is a scripting language independent shell. By default, JavaScript is the language used, but the -l option can be
used to specify a different language. Through Java to scripting language communication, jrunscript supports "exploratory programming"
style.
NOTE: This tool is experimental and may not be available in future versions of the JDK.
OPTIONS
-classpath path
Specify where to find the user's .class files that are accessed by the script.
-cp path
This is a synonym for -classpath path
-Dname=value
Set a Java system property.
-Jflag
Pass flag directly to the Java virtual machine on which jrunscript is run.
-l language
Use the specified scripting language. By default, JavaScript is used. Note that to use other scripting languages, you also need to spec-
ify the corresponding script engine's jar file using -cp or -classpath option.
-e script
Evaluate the given script. This option can be used to run "one liner" scripts specified completely on the command line.
-encoding encoding
Specify the character encoding used while reading script files.
-f script-file
Evaluate the given script file (batch mode).
-f -
Read and evaluate a script from standard input (interactive mode).
-help
Output help message and exit.
-?
Output help message and exit.
-q
List all script engines available and exit.
ARGUMENTS
If [arguments...] are present and if no -e or -f option is used, then the first argument is the script file and the rest of the arguments,
if any, are passed as script arguments. If [arguments..] and -e or -f option are used, then all [arguments..] are passed as script argu-
ments. If [arguments..], -e and -f are missing, interactive mode is used. Script arguments are available to a script in an engine variable
named "arguments" of type String array.
EXAMPLES
Executing inline scripts
jrunscript -e "print('hello world')"
jrunscript -e "cat('http://java.sun.com')"
Use specified language and evaluate given script file
jrunscript -l js -f test.js
Interactive mode
jrunscript
js>print('hello world');
hello world
js>34 + 55
89
js> thread(function() { print('hello world'); }
hello world
js>
Run script file with script arguments
jrunscript test.js arg1 arg2 arg3
test.js is script file to execute and arg1, arg2 and arg3 are passed to script as script arguments. Script can access these using "argu-
ments" array.
SEE ALSO
If JavaScript is used, then before evaluating any user defined script, jrunscript initializes certain built-in functions and objects. These
JavaScript built-ins are documented in jsdocs.
06 Aug 2006 jrunscript(1)