Sponsored Content
Full Discussion: convoluted code
The Lounge War Stories convoluted code Post 302666565 by methyl on Wednesday 4th of July 2012 06:14:05 PM
Old 07-04-2012
Quote:
Although it may be good to note that command line length does not really play a role in this case, since "for" is a shell keyword and not an external command, so the length of the list should be more or less limited by memory...
There have been so many posts from AIX users (to name but a few O/S versions and variants and for the benefit of @jlliagre that includes many versions of SunOS/Solaris!) who hit this problem that I would love that the for var in <open ended list> syntax would become a syntax error.

Somehow I knew that this thread was going to be fun.

Great posts @jgt, @alister and @Scrutinizer.
 

6 More Discussions You Might Find Interesting

1. Programming

how i prepare a c++ code(c code) for implementing my own protocol format

helo my protocol format is given below { destno,mode,no.of packet,pktsize,,pktno,textsize,CRC} description:- { is starting flag destno - 4bytes mode - 1 byte no.of pkt - 4byes pktsize - 6 bytes ... (1 Reply)
Discussion started by: amitpansuria
1 Replies

2. Shell Programming and Scripting

translate ksh code to csh code

hi all, Can any 1 help me translate this korn shell code to C shell code : email=$(grep "^$1" $folder/config_2.txt | awk '{print $2'}) In config_2.txt the content is : which mean in korn shell , $1=groupname and $2=email address. Now i need to write in C shell script,when i set the... (2 Replies)
Discussion started by: proghack
2 Replies

3. UNIX for Dummies Questions & Answers

If ‘922’ Code does not exist on ‘03’ Record, ‘901’ Code will be there instead, move ‘03’ R

01,011600033,011600033,110516,0834,2,90,,2/ 02,011600033,011103093,1,110317,0834,,2/ 03,105581,,015,+00000416418,,,901,+00000000148,,,922,+000000 00354,,/ 03,113806,,015,+00000559618,,,901,+00000000096,,,922,+000000 00621,,/ 88,902,+0000000025218,,/... (1 Reply)
Discussion started by: sgoud
1 Replies

4. Shell Programming and Scripting

Block of code replacement in Java source code through Unix script

Hi, I want to remove the following code from Source files (or replace the code with empty.) from all the source files in given directory. finally { if (null != hibernateSession && hibernateSession.isOpen()) { //hibernateSession.close(); } } It would be great if the script has... (2 Replies)
Discussion started by: hareeshram
2 Replies

5. Linux

Go to a line of code , skip few lines of code

Hi , I have a code where i am using a infinite while loop . some thing like below while do if then #go to line 20 fi command 1; command 2; #line 20: sleep 34; (5 Replies)
Discussion started by: Paarth
5 Replies

6. UNIX for Advanced & Expert Users

Trying to use a convoluted for loop with VLC and Parallel or OpenMPI with no success. Help?

I have about 12,000,000 mod files I'm trying to turn into a test of "unlimited cloud storage" by running them all through VLC and blowing them into mp3 files. I can get this to work serially but when trying to use openMPI or Parallel, something in the syntax is tripping it up some. Here is an... (1 Reply)
Discussion started by: sparticus414
1 Replies
asant(1M)						    Application Server Utility							 asant(1M)

NAME
asant - launches the Jakarta Ant tool SYNOPSIS
asant target_list Use the asant command to automate repetitive development and deployment tasks. asant is a shell script that invokes the underlying Ant in- frastructure after initializing the environment to pickup the application server installed targets. To use Ant as part of the Sun ONE Application Server, verify that your PATH includes the provided asant (Solaris) ant.bat(Windows) script. The bundled sample applications use asant extensively; however, asant can be used in any development or operational environments. The build targets are represented in the build.xml files that accompany the sample applications. To use the Ant tool to compile and reassemble the sample applications, verify that the $AS_INSTALL/bin directory is on your environment's path. On UNIX, add the $AS_INSTALL/bin directory to your PATH environment variable. On Windows, after installing the Sun ONE Application Server, set the system path by adding $AS_INSTALLin to the user PATH. You can access the PATH system variable from: Start menu, Settings, Control Panel, System, Advanced, Environment Variables, User Variables for Administrator, PATH. The target_list is one or more space separated tasks as described below. TARGETS
compile compiles all Java source code. jar assembles the EJB JAR module. war assembles the WAR file in <sample_dir>/assemble/war ear assembles the EAR file in <sample_dir>/assemble/ear core (default) compiles all sources, builds stubs and skeletons; and assembles EJB JAR, WAR and EAR files. This is the default target for all build.xml files shipped in the Sun ONE Application Server. javadocs creates Java docs in <sample_dir>/javadocs all builds core and javadocs , verifies and deploys the application, and adds the resources.. deploy deploys the application and automatically expands the EJB JAR; does not install Javadocs. undeploy removes the deployed sample from the Sun ONE Application Server. clean removes <appname>/build/ and <appname>/assemble/ and <appname>/javadocs directories. verify verifies the deployment descriptors in the sample. Example 1: Compiling and Assembling a Sample Application Using the simple stateless EJB sample as an example, execute several of the build targets as follows: cd install_root/samples/ejb/stateless/simple/src Execute the compile target to compile the Java sources as follows: asant compile Execute the war, ear, and ejbjar target to assemble the J2EE module files and the EAR file as follows by: asant jar asant war asant ear Alternatively, all the above tasks can be accomplished by: asant core Since the default build target is core you can execute asant without any arguments to rebuild the entire application. Example 2: Building Web-based Applications You can build everything, including installing Javadocs, and deploying the application by: asant all Additionally, you can build everything, except the Javadocs, but deploy the application by: asant core or just, asant then, asant deploy To rebuild the ear after you have modified the deployment descriptors without recompiling: asant ear asant deploy Apache Software Foundation at http://www.apache.org, Jakarta Ant documentation at http://jakarta.apache.org/ant/index.html. SUNWant documentation located in /usr/sfw/share/doc/ant , asadmin(1M) Sun Java System Application Server March 2004 asant(1M)
All times are GMT -4. The time now is 05:38 PM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy