10 More Discussions You Might Find Interesting
1. UNIX for Beginners Questions & Answers
hi
i have a alarm file mentioned as below
alarm_log.15122017
i want to fetch failure detail but script is not working .
kindly let me now where is the mistake
#!/bin/bash
cd /scripts/
DATE=`date "+ %d%m%Y"`
ls -lrt | grep -i "alarm_log.$DATE"
cat alarm_log.$DATE |grep -B 1... (6 Replies)
Discussion started by: scriptor
6 Replies
2. Shell Programming and Scripting
Hi,
I have a script which does couple of database connection and run some SELECT queries to get some output in the file.
I am surprised to see :eek: that when i run my script some times it gives the desired out put and sometimes it shows some error :confused: .
Suppose if i execute it say... (3 Replies)
Discussion started by: Sharma331
3 Replies
3. UNIX for Dummies Questions & Answers
Hi
The answer to this question will probably be "How long is a piece of string?"... but i'll ask anyway... The tech who was looking after admin on the only linux box in the office is no longer here, so it falls on me to maintain it.
Apparently there's a daily backup running, but i can't... (4 Replies)
Discussion started by: Noewon
4 Replies
4. Shell Programming and Scripting
Hi.. i have written a shell script and made this script to run on every day night 11: 55 pm using a cron job.
This cron job running for some days and is not running for some day. but i need this script to run every day night. Please help me.
Here is the cron tab entries,
55 23 * * *... (1 Reply)
Discussion started by: vidhyaS
1 Replies
5. Shell Programming and Scripting
Hi can anybody help me regarding this..
i want know the output of ps -ef with explanation.
how can we know the running processess.
this is the output of ps -elf
F S UID PID PPID C PRI NI ADDR SZ WCHAN STIME TTY TIME CMD
19 T root 0 0 0 0 SY ... (1 Reply)
Discussion started by: rajesh_pola
1 Replies
6. Solaris
Hello,
I've got a puzzler here but it might be quick solution for some of you.
I'm trying to add a second IP address to a network adapter on a Solaris 10 box. I've created a hostname.bge0:1 file and put in the new name, e.g. new.mycom.com. I've added the new IP and the name to hosts. I've... (12 Replies)
Discussion started by: Friedrich
12 Replies
7. Shell Programming and Scripting
Hi. A shell scripting newbie here. I am trying to write a script that will create a running total of Sales, and increment a counter for each Sales entry, but when I executed the program it never stopped.
counter=0
Sales=0
echo "enter sales price"
read sales
while
do
let counter=counter+1... (6 Replies)
Discussion started by: Ccccc
6 Replies
8. Solaris
Hi,
Server --Dell Poweredge 2550.
OS--Solaris 10
Network switch --cisco --port setting- 1000Mbps full duplex
The network LED goes off when the solaris console screen comes up but prior to that(while booting is in progess) it is green.
The system is not able to come on network,ping to switch... (3 Replies)
Discussion started by: anilzoc
3 Replies
9. Solaris
Hi,
i have a script which need to do behave differently when run as a startup process from init.d/ rc2.d script and when run manually from shell.
How do i distinguish whether my script is run by init process or by shell??
Will the command
/proc/$$/psinfo | grep "myscript" work well???... (2 Replies)
Discussion started by: vickylife
2 Replies
10. UNIX for Advanced & Expert Users
Hi,
Please I need your expert advise on how to prevent/lock from execution job1 while job2 is still running in Unix... THanks:) (3 Replies)
Discussion started by: tikang
3 Replies