Sponsored Content
Top Forums UNIX for Dummies Questions & Answers Test if execution was successful Post 302244562 by Prashantckc on Wednesday 8th of October 2008 08:06:11 AM
Old 10-08-2008
Test if execution was successful

Hi
How can I test inside a shel script whether the last action was successful or not.

I have the following line which is executing inside a script

. ./runProcess.sh $i $var_num>> error.txt 2>&1

This is occuring in a loop. How can i test whether it was succes for last var_num or not. How can I check that?
 

6 More Discussions You Might Find Interesting

1. Shell Programming and Scripting

Expect Issue Serial Forground Execution vs Concurrent Background Execution

I have an expect script that interrogates several hundred unix servers for both access and directories therein using "ssh user@host ls -l /path". The combination of host/path are unique but the host may be interrogated multiple times if there are multiple paths to test. The expect script is run... (2 Replies)
Discussion started by: twk
2 Replies

2. Shell Programming and Scripting

Test on string containing spacewhile test 1 -eq 1 do read a $a if test $a = quitC then break fi d

This is the code: while test 1 -eq 1 do read a $a if test $a = stop then break fi done I read a command on every loop an execute it. I check if the string equals the word stop to end the loop,but it say that I gave too many arguments to test. For example echo hello. Now the... (1 Reply)
Discussion started by: Max89
1 Replies

3. Shell Programming and Scripting

How to check weather a string is like test* or test* ot *test* in if condition

How to check weather a string is like test* or test* ot *test* in if condition (5 Replies)
Discussion started by: johnjerome
5 Replies

4. Shell Programming and Scripting

Prefixing test case methods with letter 'test'

Hi, I have a Python unit test cases source code file which contains more than a hundred test case methods. In that, some of the test case methods already have prefix 'test' where as some of them do not have. Now, I need to add the string 'test' (case-sensitive) as a prefix to those of the... (5 Replies)
Discussion started by: royalibrahim
5 Replies

5. High Performance Computing

IBM Hardware: Test speed of an execution core reliably.

Hey Folks, Doing simple floating point or integer arithmetic is limited since if another execution core is not busy, the system will (presumably?) assign CPU resources to where they are needed so I could be getting the performance of 2 or more cores theoretically? Any good reliable way to... (2 Replies)
Discussion started by: Devyn
2 Replies

6. UNIX for Dummies Questions & Answers

Confirm the execution of copy command is successful or not

All, I have to copy huge file from one location to another using python . I want to make sure the execution of Copy command is successful and all the files are copied properly (there has not been any abrupt interruption to the copy process or error like no space available is encountered during... (5 Replies)
Discussion started by: IshuGupta
5 Replies
ZF(8)								zendframework tool							     ZF(8)

NAME
zf - command line tool for zendframework SYNOPSIS
zf [--global-opts] action-name [--action-opts] provider-name [--provider-opts] [provider parameters ...] DESCRIPTION
zf is a command line tool to create and manage zendframework projects. The CLI, or command line tool (internally known as the console tool), is currently the primary interface for dispatching Zend_Tool requests. With the CLI tool, developers can issue tooling requests inside the "command line window", also commonly known as a "terminal" window. OPTIONS
zf show version mode[=mini] name-included[=1] This will show the current version number of the copy of Zend Framework the zf.php tool is using. zf show manifest This will show what information is in the tooling systems manifest. This is more important for provider developers than casual users of the tooling system. zf create project MyProjectName The project provider is the first command you might want to run. This will setup the basic structure of your application. This is required before any of the other providers can be executed. zf create module Blog This will create a module named Blog at application/modules/Blog, and all of the artifacts that a module will need. zf create controller Auth This will create a controller named Auth, specifically it will create a file at application/controllers/AuthController.php with the AuthController inside. zf create action login Auth This will create an action in an existing controller. zf create view Auth my-script-name This will create a view script in the controller folder of Auth. zf create model User This will create a model User. zf create form Auth This will create a form Auth. zf configure dbadapter adapter=Pdo_Mysql&username=test&password=test&dbname=test This will configure your database connection and is saved in your application.ini. zf create dbtable User user This creates a Zend_Db_Table model/data file. zf enable layout This enable layout in your application and creates necessary files and store this to your application.ini. HOMEPAGE
More information about zendframework project can be found at <http://framework.zend.com/>. AUTHOR
The development is currently coordinated by Zend Technologies Ltd. <http://framework.zend.com>. This manual page was written by Frank Habermann <lordlamer@lordlamer.de>, for the Debian project (but may be used by others). 1.10.1 2010-02-12 ZF(8)
All times are GMT -4. The time now is 02:57 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy