10 More Discussions You Might Find Interesting
1. UNIX for Beginners Questions & Answers
When I power ON my T4-1, I got a prompt -> where I have to start /SYS and start /SP/console. How can I auto supply these two commands ? (3 Replies)
Discussion started by: z_haseeb
3 Replies
2. Red Hat
Hi all
I'm using the following for my os
# cat /etc/redhat-release
CentOS release 6.4 (Final)
when I execute the following
# ls -lrth /etc/init.d/httpd
-rwxr-xr-x. 1 root root 3.3K Feb 22 19:20 /etc/init.d/httpd
# /etc/init.d/httpd start
Starting httpd: httpd: Syntax error... (1 Reply)
Discussion started by: jediwannabe
1 Replies
3. Shell Programming and Scripting
I have a script that runs on an AIX 5.3.10.0. It runs perfectly on days that are double digit numbers, but from the 1st to the 9th of the month it runs but does not report anything.
The command in the script is as follows:
awk -v d=$(date '+%b%d') '/user:warn/ && /has shutdown/ && ($1$2 ==... (2 Replies)
Discussion started by: jimbojames
2 Replies
4. OS X (Apple)
How do I make terminal autorun commands at start up? For example, I have several windows of terminal, I want one to automatically run 'top' and a couple others autorun 'man' pages.
Is there any way I can do this? (1 Reply)
Discussion started by: randomtypos
1 Replies
5. UNIX for Dummies Questions & Answers
What I'm looking for is best explained with a little example.
#!/bin/bash
gedit
echo "I need this message to appear while gedit is still running, but it appears only then when I close gedit."
Of course most of the times you want the script to wait, but in this case I want to start a new... (5 Replies)
Discussion started by: MrZehl
5 Replies
6. UNIX for Dummies Questions & Answers
I have a script that executes a MAIN JAVA FILE
It does check if the process is already running or not by using this code
w_pid=`ps -efx | grep -v grep | grep "FileTransactionArchiveMain dvlp"|awk '{print $11}'`
if
then
#echo 'Another instance is running.'
exit
fi
Now I... (1 Reply)
Discussion started by: akabir77
1 Replies
7. UNIX for Dummies Questions & Answers
I am trying to see if a process is running what was its start time.
here is the code that I am using
if
then
echo 'Gateway output processing started.'
else
VAR=$(ps -ef | grep batch_output_x )
...
fi
now the problem i see is when the process is running i get two... (3 Replies)
Discussion started by: akabir77
3 Replies
8. Shell Programming and Scripting
HI.
I am trying to run 2 commands, using the "for x in a b c d" loop but i am having a hard time coding it...
Here is what i have so far:
for SERVER in SERVERA SERVERB SERVERC SERVERD SERVERE
do
###############################################################################
#... (5 Replies)
Discussion started by: Stephan
5 Replies
9. Programming
Hi,
-How can I get number of files, cpu usage (percentage), memory usage, disk usage, ...etc, using C program ... I can use unix command ( system(command) )but I want the value to be returned back to my C program to use it in my code? How can I do that?
Thanks in advance ... (2 Replies)
Discussion started by: zainab
2 Replies
10. UNIX for Dummies Questions & Answers
I hope somebody can help with this one.
If I run a command like this /rd/bin/rptmgr
to start a report manager up. How could I view this to see if it is running?
I can view it thru our bussiness app in GUI But I was wondering if I could check this when I am at the console in UNIX
I am... (2 Replies)
Discussion started by: rocker40
2 Replies