10 More Discussions You Might Find Interesting
1. Shell Programming and Scripting
Sorry I put -r I ment to out -w but its not perform none of -w, -r, -x flags
Using centos 6.4
echo -e "enter the name of file :\c"
echo "Type some text date. Tp quit press crtl-"
cat >> $file_name
... (2 Replies)
Discussion started by: zbest1966
2. Shell Programming and Scripting
I need help with the following.
1) Write a program in any language that takes a single integer array parameter and returns the decimal average of the input values.
2) Write a program, in any language, that prints the integers from 1 to 10, along with a cumulative sum of the integers printed... (1 Reply)
Discussion started by: sqa4life
3. Shell Programming and Scripting
I have a script that calls another program/script, xxx, to run in the background. Supposedly this program at most should finish within five (5) minutes so after five (5) minutes, I run some other steps to run the script into completion.
My problem is sometimes the program takes... (5 Replies)
Discussion started by: newbie_01
4. Shell Programming and Scripting
shell script in Unix/Linux to find the lines numbers of a text file are having word which is 5 to 10 characters long and having first letter as a capital letter. (3 Replies)
Discussion started by: usersnehal
5. UNIX for Advanced & Expert Users
I was wondering if anybody can help.
Is it possible to distinguish whether a script was launched from a shell (interactively) or was called from another script?
I basically need to do the following: if the script was run from the command line, I want to enable logging of the... (2 Replies)
Discussion started by: Snakeye
6. UNIX for Dummies Questions & Answers
Hi. When you write a script/program in vi Do you include the $ Eg. #!/bin/bash $ echo "Today's date is `date`" or echo "Today's date is `date`" Make your script executable. $chmod +x script I included that. I keep getting a permission denied... why? Thanks! (5 Replies)
Discussion started by: JudoMan
7. UNIX for Dummies Questions & Answers
i want to write a script that executes a program (exec?) .
this program then requires a filename as input.
how do i give it this input in the script so the program will be complete run and close by the script.
program then asks for filename
"enter filename:"... (1 Reply)
Discussion started by: tuathan
8. Shell Programming and Scripting
# This program will add integers
# add integer1 ..
# Check for argument
if ($#argv == 0 ) then
echo "usage: add integers"
set input = $argv
set sum = 0
foreach var ( $input )
@sum = $sum + $input
# (1 Reply)
Discussion started by: haze21
9. Shell Programming and Scripting
I just tried to call a simple script from a pretty simple C program. I could not succeed :-( a message was thrown saying
"sh: line 1: "Script name with path": Permission denied"
The C program and shell script are below, both are in the same directory and shell script is given... (7 Replies)
Discussion started by: Chanakya.m
10. Filesystems, Disks and Memory
shell script for sorting,searchingand insertion/deletion of elements in a list (1 Reply)
Discussion started by: jayaram_miryabb