9 More Discussions You Might Find Interesting
1. UNIX for Beginners Questions & Answers
Hi Folks -
I'm looking for the best way to to increment fiscal weeks - allow me to explain.
At my one client, 10/01/17 was the beginning if year fiscal year 2018.
Each week, I need to manage a unique set of variable that are updated in my application - they are called substitution variables.... (31 Replies)
Discussion started by: SIMMS7400
31 Replies
2. Shell Programming and Scripting
Hello All,
I'm writing a Bash Script and in it I execute a piped command within a Function I wrote and I can't seem to redirect the
stderr from the 1st pipe to stdout..?
I'm setting the output to an Array "COMMAND_OUTPUT" and splitting on newlines using this --> "( $(...) )". By putting... (6 Replies)
Discussion started by: mrm5102
6 Replies
3. UNIX for Dummies Questions & Answers
i have the below script:
#!/bin/bash
echo "enter a"
read a
echo "enter b"
read b
let c=a+b
echo $c
at any point of time between entering the value for a and b,if user presses ctrl+a key combination, then it should start from the beginning(the script should be restarted).
it should... (4 Replies)
Discussion started by: pandeesh
4 Replies
4. Shell Programming and Scripting
I'm trying my first shell script. I would like my computer to launch an application if I'm on my work network, or mount my shared files if I'm on my home network. Here's how I'm trying to do it...
#!/bin/bash
CURRENT_IP=ipconfig getifaddr en1
HOME=192.168.1.6
WORK=192.168.0.123
if ; then... (2 Replies)
Discussion started by: bcamp1973
2 Replies
5. UNIX for Dummies Questions & Answers
Hi,
I currently have a shell script where it captures in the value in to 'TOTAL' and outputs to a file, i want to capture another value of a query in to another variable and output it.
Current script:
sqlplus -s $user <<EOD | read TOTAL
set heading off
set pages 0
set feedback off
set... (1 Reply)
Discussion started by: ravi0435
1 Replies
6. Shell Programming and Scripting
Hi,
#Script mentioned below
txt=($(echo `./demo1.sh`))
p=0
for p in "$txt"
do
col=($(./generateTable /import/data01/sri/Developer/SqlReport/Lab/23/${var} "$p"))
.
.
.
.
done
o/p displayed upon executing a script called "demo1.sh" is as below(two seperate lines):... (2 Replies)
Discussion started by: villain41
2 Replies
7. Linux
Hi,
I want to capture TCPDUMP of traffic, I tried doing this but did not find success..can anyone plz correct it.
# tcpdump -s0 -vv -w /home/osuresh/test_tcp_dump host 10.12.10.22 && port 161
bash: tcpdump: command not found
# tcpdump -s0 -vv -w /home/osuresh/test_tcp_dump host... (5 Replies)
Discussion started by: sureshcisco
5 Replies
8. Shell Programming and Scripting
Hi
below is my script which copies test file to each directory in the file and checks if the permissions are ok, but I am not able to capture the log of the output.
here is the script
#! /usr/bin/sh
set -x
cd /dir/of/files
while read line
do
cp test.txt $line
rm $line/test.txt
done <... (3 Replies)
Discussion started by: mgirinath
3 Replies
9. Shell Programming and Scripting
Hello Friends
I have three dirs
1. /home/main-bkup
2. /home/bkup-week1
3. /home/bkup-week2
Now we copy backups in 1 initially, then on 1st week we copy few content of 1 into 2 and then run some scripts on that. Then in 2nd week we keep 2 untouched and do the same thing in 3.
So I... (1 Reply)
Discussion started by: csaha
1 Replies