10 More Discussions You Might Find Interesting
1. UNIX for Beginners Questions & Answers
So I've written my first bash script.I wanted to run it from the command line, but I got an error:
$ myscript.sh
myscript.sh: command not found
So instead I try this and it works:
$ ./myscript.sh
Is this how I will always need to execute it? How can I run myscript.sh without having to... (2 Replies)
Discussion started by: P.K
2 Replies
2. Shell Programming and Scripting
I have prepared a shell script to find the duplicates based on the part of filename and retain latest.
#!/bin/bash
if ; then
mkdir -p dup
fi
NOW=$(date +"%F-%H:%M:%S")
LOGFILE="purge_duplicate_log-$NOW.log"
LOGTIME=`date "+%Y-%m-%d %H:%M:%S"`
echo... (6 Replies)
Discussion started by: gold2k8
6 Replies
3. Shell Programming and Scripting
Hi,
I am new to use minicom. I want script to run on minicom with username and password as automated.(Expect). please could anyone suggest the sample code for it.
Thanks in advance (2 Replies)
Discussion started by: vanid
2 Replies
4. Homework & Coursework Questions
1. The problem statement, all variables and given/known data:
Running different parts of the assignment together in 1 script
2. Relevant commands, code, scripts, algorithms:
awk, nawk, bash, cp, cut, echo, expr, grep, join, mkdir, paste, rm, sort, sed, test, tr, true and false.
3. The... (0 Replies)
Discussion started by: bigubosu
0 Replies
5. Shell Programming and Scripting
Hi all,
I have set up a cron job which calls another shell script shell script which in turn calls a Java process. The cron tab looks so.
0,30 7-18 * * 1-5 /u01/home/weblogic/brp/bin/checkstatus.sh >> /u01/home/weblogic/logs/checkstatus.log
The checkstatus.sh scripts looks like this.
... (4 Replies)
Discussion started by: sirbrian
4 Replies
6. Shell Programming and Scripting
Hi All,
Am using the below command to start my application using the root user
su - bin -c "/home/bin/test/start.sh"
but am getting the error becaue i have set some environment varibales in bin .profile
when i execute the command start.sh by logging directly into bin account it's... (8 Replies)
Discussion started by: ravi.sri24
8 Replies
7. Shell Programming and Scripting
Hi guys just wondering how i could make one of my scripts run unattended without the use of cron? (3 Replies)
Discussion started by: musicmancanora
3 Replies
8. Shell Programming and Scripting
Hi,
Iam having the scripts as follows. i jus want to run those in parallel.
main aim is to minimise the time for overall execution of the script.
now out.txt is having 1 lac records.
script1(split.sh)
split -1000 out.txt splitout
ls -A splitout* > filelist.txt
cat filelist.txt... (6 Replies)
Discussion started by: nivas
6 Replies
9. UNIX for Dummies Questions & Answers
what command can i use to tell if a script is running under different users? (1 Reply)
Discussion started by: csnewbie
1 Replies
10. UNIX for Dummies Questions & Answers
Hi,
Posting my first query in this Forum,here's my query
i want to execute 100 .sql files in unix having some code for connecting with db and executing procedures inside that,that to be run parallel like threads.want to run all the 100 .sql files simultanously.
thanks in advance. (4 Replies)
Discussion started by: santho
4 Replies