06-29-2005
Quote:
Originally Posted by deepaksamuel
in my case cnt is 0 and maxcnt is 10 and so that error is coming
it works fine under Solaris' stock
ksh
is your script a
ksh script?
10 More Discussions You Might Find Interesting
1. Linux
HELLO GUYS,
How u all guys doing?Recently I brought a system and installed Red Hat Linux in it. I have also got a network card. My question is can i connect NIC to my system and use it as a client? I really don't want to buy another system.
I want to use this computer/system both as server and... (0 Replies)
Discussion started by: cyno
0 Replies
2. Programming
Help! I am very stuck!!!
I have to produce a practical implementation of ONC RPC for an assignment and I do not know where to start. I hve done much searching on sun's site but everything is too complicated for someone with my limited knowledge. I only know the very basic unix commands and have... (1 Reply)
Discussion started by: karen79
1 Replies
3. Linux
hi everyone i m a novice user . just want to know how to use this website and also learn unix from the basics. can any one help me please.... (2 Replies)
Discussion started by: MSK
2 Replies
4. Shell Programming and Scripting
I really want to get into unix scripting,work with RS6000 -AIX.
How do i get started,what books are good for beginners,i am very desperate
I have no programming background but ready to scrafice all my time in learning .please help.
PLEASE,PLEASE PLEASE ,HELP....
Any advice will realy... (2 Replies)
Discussion started by: Ghanaman
2 Replies
5. Solaris
Heya all Im just reading up on the solaris o/s and have a few questions regarding it:
1) is the solaris of free to use/download? if yes where?
2) Can the solaris o/s be loaded from CD without affectin windows o/s just like linux can?
3) what are the hardware requirements for using... (2 Replies)
Discussion started by: new214
2 Replies
6. UNIX for Dummies Questions & Answers
Heya all Im just reading up on the solaris o/s and unix and i just have the following qustions
1) is the solaris o/s the same as Unix if not how are they different - i.e. are they different operating systems?
2) Can the Unix be loaded from CD without affectin windows o/s just like linux... (2 Replies)
Discussion started by: new214
2 Replies
7. Shell Programming and Scripting
I am just learning unix and need some help. I am trying to display all of the files I have modified within the last 24 hours and sort them from the most recently modified. I can't figure it out.. I've been using a lot of ls and find commands. Here are some things I've tried:
find . -mtime -1 |... (4 Replies)
Discussion started by: mredwin3
4 Replies
8. Shell Programming and Scripting
My pipe delimited file is coming over with spurious “\” characters
inserted into some alpha fields,
which is causing the records to be split into 2.
Eg Abc|def|10/11\
AAAA|xyz
Lmn|opq|10/11BBBB|xyz
etc etc
I am having to go into vi, then enter / \ to... (5 Replies)
Discussion started by: malts18
5 Replies
9. Programming
Guys can you help me ?
I'm novice in C but I have a lot of will to master C. Each gurney starts with first step
O.K. My problem is to compare two integers entered by user
I know how to set up conditions and problem is how to print correct value (grater number)
// This program... (5 Replies)
Discussion started by: solaris_user
5 Replies
10. Shell Programming and Scripting
Hi,
Need some help with a sed command I have butchered together (with help from this forum):
I have a script that has the following output (a small example of the full file):
example.txt
092F 1639163_Cluster01_Prod
0522 1639163_Cluster02_Prod
08C2 1639163_Cluster07_Prod
0957... (2 Replies)
Discussion started by: colinwilson1303
2 Replies
LEARN ABOUT FREEBSD
atf-sh
ATF-SH(1) BSD General Commands Manual ATF-SH(1)
NAME
atf-sh [-s shell] -- interpreter for shell-based test programs
SYNOPSIS
atf-sh script
DESCRIPTION
atf-sh is an interpreter that runs the test program given in script after loading the atf-sh(3) library.
atf-sh is not a real interpreter though: it is just a wrapper around the system-wide shell defined by ATF_SHELL. atf-sh executes the inter-
preter, loads the atf-sh(3) library and then runs the script. You must consider atf-sh to be a POSIX shell by default and thus should not
use any non-standard extensions.
The following options are available:
-s shell Specifies the shell to use instead of the value provided by ATF_SHELL.
ENVIRONMENT
ATF_LIBEXECDIR Overrides the builtin directory where atf-sh is located. Should not be overridden other than for testing purposes.
ATF_PKGDATADIR Overrides the builtin directory where libatf-sh.subr is located. Should not be overridden other than for testing purposes.
ATF_SHELL Path to the system shell to be used in the generated scripts. Scripts must not rely on this variable being set to select a
specific interpreter.
EXAMPLES
Scripts using atf-sh(3) should start with:
#! /usr/bin/env atf-sh
Alternatively, if you want to explicitly choose a shell interpreter, you cannot rely on env(1) to find atf-sh. Instead, you have to hardcode
the path to atf-sh in the script and then use the -s option afterwards as a single parameter:
#! /path/to/bin/atf-sh -s/bin/bash
ENVIRONMENT
ATF_SHELL Path to the system shell to be used in the generated scripts.
SEE ALSO
atf-sh(3)
BSD
September 27, 2014 BSD