10 More Discussions You Might Find Interesting
1. Shell Programming and Scripting
Hello Team-
we would like to implement an approach which has to write the log file simultaneously
when .sql file is executing by Unix process. At present,it is writing the log file
once the process is completed. I've tested the current process with the below
approaches and none of them... (1 Reply)
Discussion started by: Hima_B
1 Replies
2. UNIX for Dummies Questions & Answers
Hi All,
I am calling a shell script from another shell script, however, it only executes part of it (the echo commands only). What could be some causes for that?
For example:
ShellScriptA.sh:
...
...
...
. ShellScriptB.sh
ShellScriptB.sh contents:
echo date
echo... (7 Replies)
Discussion started by: DBnixUser
7 Replies
3. Shell Programming and Scripting
I have following script to send email when a USB is attached.
#!/bin/bash
NUMBER=`/bin/cat /u/numberoflines`
LINES=`/usr/bin/wc -l < /var/log/messages`
DIFFERENCE=$(($LINES-$NUMBER))
if ; then
tail -n $DIFFERENCE /var/log/messages |while read line
do
if $( echo $line | grep --quiet... (2 Replies)
Discussion started by: kashif.live
2 Replies
4. UNIX for Dummies Questions & Answers
Hi
i was searching for the source code of the unix/linux command "script" but i could not find any where.
could some one explain How can we write a program which runs at background and reading the current terminal ? (1 Reply)
Discussion started by: rakeshkumar
1 Replies
5. Shell Programming and Scripting
Hello All,
I am trying to come up with a shell script to count a specific word in a logfile on each day of this month, last month and the month before. I need to produce this report and email it to customer.
Any ideas would be appreciated! (5 Replies)
Discussion started by: pnara2
5 Replies
6. Shell Programming and Scripting
Hello guys,
I have the following commands :
Command 1: sudo find "../bundlepool" -name "merchandising2.html" -print0 |xargs -0 -I {} cp "rebranding/merchandising2.html" {}
Command 2: find "../bundlepool" -name "merchandising2.html" -exec cp rebranding/merchandising2.html {} \;
Command 3: ... (2 Replies)
Discussion started by: ihabo01
2 Replies
7. Shell Programming and Scripting
This is all on a Unix computer where I login using Putty (for references sake).
I was wondering if it was possible to use the write command with an already predetermined message in mind.
I'm attempting to write to another user, but I'd like to do something like:
write user1 "Message"
So... (2 Replies)
Discussion started by: eXist73
2 Replies
8. Windows & DOS: Issues & Discussions
Hi,
Batch script gets executed without any error, but on execution some of the partial contents of the batch file gets appended at the end of the file which is currently in execution, hence the script tries to execute again for the second time , which should not happen.
How to get it... (5 Replies)
Discussion started by: milink
5 Replies
9. Shell Programming and Scripting
Hello all,
I have just started doing shell scripting.
I want to read a file which stores the status of my job I have submitted
on a cluster.
The file looks something like this :
========================FILE=============================
crab: Checking the status of all jobs: please wait... (4 Replies)
Discussion started by: learn_linux
4 Replies
10. Shell Programming and Scripting
Hi ,
I am relatively new to unix...
Can u pls help me out to find out if the first day of the month is a working day ie from (Monday to Friday)...using Date and If clause in Korn shell..
This is very urgent.
Thanks for ur help... (7 Replies)
Discussion started by: phani
7 Replies