Beware, though, of relying on the environment set in .kshrc in your scripts: they might, once you have written and tested them, be run in a different environment (for instance from cron or under a different user) and variables like PATH, which you take for granted, might not be set in these environments.
The best way to deal with an environment inside scripts is to explicitly set it during startup of the script. I use a special function for that, which is executed at the beginning of all of my scripts:
Code:
#! /bin/ksh
. /usr/local/lib/ksh/f_env
# ... rest of your code ....
Hello,
I got a make compilation error saying
make: *** No rule to make target `/usr/include/iso/stdio_iso.h', needed by `.test.d'. Stop.
The mentioned folder `/usr/include/iso/' doesnt exist in solaris5.7 sparc that i am using.
I need to know which package will actually install the... (1 Reply)
Hello everyone,
I'm a unix noob. I have a powerbook running mac os x 10.4 and for one of my classes I need to install the latest version of php (5.0.5). I'm following the instructions at http://developer.apple.com/internet/opensource/php.html to install but I've run into a problem.
The... (2 Replies)
i have written a script "master.shell" which is in the path:
/a/homes.surrey.ac.uk/pgt_fs_002/bl00001/phd/griddata/shell/master.shell
====================================
#/usr/local/bin/tcsh
setenv GLOBUS_LOCATION /grid/software/globus3
setenv PATH... (1 Reply)
hi ,
I have certain files at the same path with differeent extensions like .dat , .txt etc ...........i need to rename them with extension .found at the same path with the help of loop....
also the files names will be like this ;
abc_2010_c1.dat
abc_2010_c2.dat
xyz_2010_c1.txt (2 Replies)
When i configure apache(2.2.15) on solaris-8 server it producing following error
<configure: error: no acceptable ld found in $PATH
configure failed for srclib/apr >
please help me any to fix this error.
:confused:
---------- Post updated at 09:44 PM ---------- Previous update was... (0 Replies)
Hi,
I have a file abcd.txt which has contents in the form of full path file names i.e.
$home> vi abcd.txt
/a/b/c/r1.txt
/q/w/e/r2.txt
/z/x/c/r3.txt
Now I want to retrieve only the directory path name for each row
i.e
/a/b/c/
/q/w/e/
How to get the same through shell script?... (7 Replies)
Hello
I am new to solaris samba. After configuring samba through swat I can see the the machine listed under windows workgroup computers. when selected it shows the shared directories, But when trying to connect to shares shows a error network path not found.
At the same time solaris network... (5 Replies)
My input is as below :
/splunk/scrubbed/rebate/IFIND.REBTE.WROC.txt
/splunk/scrubbed/rebate/IFIND.REBTE.WROC.txt
/splunk/scrubbed/loyal/IFIND.HELLO.WROC.txt
/splunk/scrubbed/triumph/ifind.triumph.txt
From the above input I want to extract the file names only .
Basically I want to... (5 Replies)
Hello,
I am creating a file with all the source folders included in my git branch, when i grep for the used source, i found source included as relative path instead of absolute path, how can convert relative path to absolute path without changing directory to that folder and using readlink -f ? ... (4 Replies)
What is the difference ../directory path and ./directory path in ksh? (1 Reply)
Discussion started by: TestKing
1 Replies
LEARN ABOUT MOJAVE
apt
apt(1) General Commands Manual apt(1)NAME
apt - annotation processing tool
SYNOPSIS
apt [ -classpath classpath ] [ -sourcepath sourcepath ] [ -d directory ] [ -s directory ] [ -factorypath path ] [ -factory class ] [ -print
] [ -nocompile ] [ -A [ key [ =val ] ] ] [ javac option ] sourcefiles [ @files ]
DESCRIPTION
The tool apt, annotation processing tool, includes a set of new reflective APIs and supporting infrastructure to process program annota-
tions. The apt reflective APIs provide a build-time, source-based, read-only view of program structure. These reflective APIs are designed
to cleanly model the JavaTM programming language's type system after the addition of generics. First, apt runs annotation processors that
can produce new source code and other files. Next, apt can cause compilation of both original and generated source files, easing develop-
ment. The reflective APIs and other APIs used to interact with the tool are subpackages of com.sun.mirror.
A fuller discussion of how the tool operates as well as instructions for developing with apt are in Getting Started with apt at
http://java.sun.com/j2se/1.5.0/docs/guide/apt/GettingStarted.html.
PARAMETERS
Options may be in any order. For a discussion of parameters which apply to a specific option, see OPTIONS below.
sourcefiles Zero or more source files to be processed.
@files One or more files that list source files or other options.
OPTIONS
apt specific options
-s dir Specify the directory root under which processor-generated source files will be placed; files are placed in subdirectories
based on package namespace.
-nocompile Do not compile sources files to class files.
-print Print out textual representation of specified types; perform no annotation processing or compilation.
-A[key[=val]] Options to pass to annotation processors -- these are not interpreted by apt directly, but are made available for use by
individual processors
-factorypath path
Specify where to find annotation processor factories; if this option is used, the classpath is not searched for factories.
-factory classname
Name of annotation processor factory to use; bypasses default discovery process
Options shared with javac
-d dir Specify where to place processor and javac generated class files
-cp path or
-classpath path
Specify where to find user class files and annotation processor factories. If -factorypath is given, the classpath is not
searched for factories.
Consult the javac(1) man page for information on javac options.
NOTES
The apt tool and its associated APIs may be changed or superseded in future j2se releases.
SEE ALSO javac(1)java(1)
13 June 2004 apt(1)