10 More Discussions You Might Find Interesting
1. Shell Programming and Scripting
Hi everyone, can you help me ?, I have the following shell:
DIR="/backups/backdata"
DIR_2="/BACKOPENF/database"
LOG="/backups/logs/oracle_backup.log"
EXP_LOG="/backups/logs/Exp`date +%Y%m%d%H%M%S`.log"
EXP_FILE="Exp`date +%Y%m%d%H%M%S`.dmp"
HOLD_DAY=1
# String de conexion... (4 Replies)
Discussion started by: Manolo
4 Replies
2. Shell Programming and Scripting
Hi,
I'm newbie in the shell script world and i want to solve some problems I am experiencing.
My main goal is to create a ksh script to use 2 text files as input to execute a local shell script(create user commands in the criar.users.aix file) through a ssh connection in which the list of... (1 Reply)
Discussion started by: joaochambino
1 Replies
3. Shell Programming and Scripting
Very new to the Korn Shell, but I've been looking up loops online and it seems this should work. I'm just trying to convert an ip range in variables $A and $B and iterate the individual ip's out to new lines. Unfortunately I get {152..155} instead of 152, 153, 154, and 155.
# for i in {$A..$B};... (8 Replies)
Discussion started by: Azrael
8 Replies
4. Shell Programming and Scripting
Hi, guys:
I am writing my own shell using c. I meet with two problems.
First, when I use tcsetpgrp system call to move a background job to foreground, when this job finishes, my shell program also exit. What is the problem for that?
Second, when I use signal , if the child has its own... (1 Reply)
Discussion started by: tomlee
1 Replies
5. UNIX for Dummies Questions & Answers
Hi All,
Below is the script which i have written in cygwin:
#!/usr/bin/sh
fname=$1
cat $fname | sed 's/ //g' > fname1
for i in `cat $fname1`
do
echo $i > file1
#param1 is script name
param1=`awk -F , '{print $1}' file1`
param1="$param1.sql"
#param2 is BL
param2=`awk -F , '{print... (5 Replies)
Discussion started by: janardhanamk
5 Replies
6. Shell Programming and Scripting
So I have a line that is suppose to find all files in a folder and then run a program through all the files and then output the files with a _.txt ending.
find ./ -name '*' -exec sh -c 'intersect-by-ids -ff {} -fc 1 -if normed_occ.txt -ic 1 \> {}_.txt'\;
the error that i get is "find: missing... (2 Replies)
Discussion started by: kylle345
2 Replies
7. UNIX for Dummies Questions & Answers
hiiii
this is the first time for me here >>>
but really i have some problems for answers these things also understanding...
Can any one help me?
Write a simple shell as given in class. Your shell, called shell will read input lines from standard input, parse them into a... (3 Replies)
Discussion started by: Ronald kabbi
3 Replies
8. Shell Programming and Scripting
hi, i need some help, the situation is this
1-file of variable enviroments
DIR1=/tmp
DIR2=otherdir/mydir
2-file of list of files (all the names references whic variables of first point)
${DIR1}/${DIR2}/onefile
Well now i create a shell script whic... (5 Replies)
Discussion started by: chipcmc
5 Replies
9. Solaris
Hey Guys,
I'm looking for some advice about a korn shell script I've written. I've spent hours googling for an answer hopefully someone here can help me out.
Basically the part of the script I'm having problems with is when I need to SFTP a file from one server to another. The line looks... (6 Replies)
Discussion started by: hilather
6 Replies
10. Shell Programming and Scripting
Does anyone know a good site to do shell script problems? (0 Replies)
Discussion started by: cleansing_flame
0 Replies