01-15-2009
No problem. Just keep at it, it'll come.
10 More Discussions You Might Find Interesting
1. Shell Programming and Scripting
Hi, being very new to Korn Shell Scripting I am hoping that someone here can help me. I want to compare file name in scp/inbox directory to file name stored inside a file in pnt/compare directory.
Hi, being very new to Korn Shell Scripting I am hoping that someone here can help me. I want to... (1 Reply)
Discussion started by: hanie123
1 Replies
2. UNIX for Dummies Questions & Answers
Hi
I'm new to scripting and I don't know where to start. I need to create a script that needs to look for specific files in a specific folder then I need to return the filename, the recordcount, bytecount and checksums. Then I need to write these results into a new file.
I would appreciate... (2 Replies)
Discussion started by: th0123
2 Replies
3. Shell Programming and Scripting
I have made the following simple script:
a=0
let a=$a+1
if "]
then mailx -s "Up" abc@yahoo.com
fi
When I run the above script, I get the following error:
# ./new.ksh
./new.ksh: ]: not found.
Please tell me how to use if here? (6 Replies)
Discussion started by: kamaldeep1986
6 Replies
4. Shell Programming and Scripting
When I run this, it tests to Y, but why? If I take the double quotes off of test, i get the same.
# !/bin/ksh
TEST="N"
if ; then
echo $TEST" yes"
else
echo "no"
fi (4 Replies)
Discussion started by: guessingo
4 Replies
5. Shell Programming and Scripting
Hi to everybody!
I want to write a simple script in ksh that decrypts and encrypts using the DES algorithm.
There is no builtin function in UNIX : i have found only a function in openssl but i don't understand how to use it.
The script must accept in input the plaitext and the DESKEY in... (2 Replies)
Discussion started by: kazikamuntu
2 Replies
6. Shell Programming and Scripting
I am attempting to learn shell programming using o'rielly book "Learning the Korn Shell".
I am finding it pretty difficult to do since the only access I have to unix boxes are running version 99 of ksh.
The book utilizes ksh93 and there appear to be many differences. I can't even follow along... (2 Replies)
Discussion started by: vedder191
2 Replies
7. UNIX for Advanced & Expert Users
I have a scenario to implement in Korn shell script. Here it is..
I need to compare two values to see whether they are same or not. The issue is that the values coming in for comparison can be a string or an integer which can be determined during run time only.
Which korn shell comparison... (2 Replies)
Discussion started by: vani123
2 Replies
8. Homework & Coursework Questions
Use and complete the template provided. The entire template must be completed. If you don't, your post may be deleted!
1. The problem statement, all variables and given/known data:
There is a menu driven program and there are some fields to be achived
3. Display contents of all .lst files... (3 Replies)
Discussion started by: jainitai
3 Replies
9. Shell Programming and Scripting
#! /bin/ksh
while read line
do
if ] ; then
echo "no data"
continue;
fi
echo "performing operation on $line"
done < prg.txt (3 Replies)
Discussion started by: Juhi Kashyap
3 Replies
10. Shell Programming and Scripting
Does dialog box works on all kind of shells? I am using korn shell in Linux .
For me dialog is not working :) is there any particular syntax or do we need to have particular OS version or shell env?
#!/bin/ksh
dialog --title "create file" \
--backtitle "shell script practice" \... (1 Reply)
Discussion started by: NarayanaPrakash
1 Replies
LEARN ABOUT DEBIAN
sm2file
SM2FILE(1) ICI executables SM2FILE(1)
NAME
sm2file - shared-memory linked list data extraction test program
SYNOPSIS
sm2file
DESCRIPTION
sm2file stress-tests shared-memory linked list data extraction by retrieving and deleting all text file lines inserted into a shared-memory
linked list that is the root object of a PSM partition named "file2sm".
The operation of sm2file echoes the cyclical operation of file2sm: the EOF lines inserted into the linked list by file2sm punctuate the
writing of files that are copies of file2sm's original source text file. The name of each file written by sm2file is file_copy_cycleNbr,
where cycleNbr is, in effect, the count of EOF lines encountered in the linked list up to the point at which the writing of this file
began.
sm2file may catch up with the data ingestion activity of file2sm, in which case it blocks (taking the file2sm test semaphore) until the
linked list is no longer empty.
EXIT STATUS
0 sm2file has terminated.
FILES
No configuration files are needed.
ENVIRONMENT
No environment variables apply.
DIAGNOSTICS
can't attach to shared memory
Operating system error. Check errtext, correct problem, and rerun.
Can't manage shared memory.
PSM error. Check for earlier diagnostics describing the cause of the error; correct problem and rerun.
Can't create shared memory list.
PSM error. Check for earlier diagnostics describing the cause of the error; correct problem and rerun.
Can't create semaphore.
ION system error. Check for earlier diagnostics describing the cause of the error; correct problem and rerun.
Can't open output file
Operating system error. Check errtext, correct problem, and rerun.
can't write to output file
Operating system error. Check errtext, correct problem, and rerun.
BUGS
Report bugs to <ion-bugs@korgano.eecs.ohiou.edu>
SEE ALSO
file2sm(1), smlist(3), psm(3)
perl v5.14.2 2012-05-25 SM2FILE(1)