9 More Discussions You Might Find Interesting
1. Shell Programming and Scripting
I'm new in Shell Programming and Scripting, I would like to ask some questions.
ps -ef | grep $appNAme | grep -v grep <-- what will it return when it find a process is running? return 1 or 0
if
then
exit 1 <--- if = 0 , run this ?
else
continue <--- if = 1 , run this ?... (5 Replies)
Discussion started by: LoAlex
5 Replies
2. Shell Programming and Scripting
#! /bin/bash
# ask what the user would like to do
CMD=$CMD
MBA=$MB
RS=$RS
CT=$CT
echo
echo -n "What would you like to do??
REMEMBER WHEN PROGRAMMING ICP's TO SELECT CORRECT COMMAND ACCORDING TO
NECCESSARY TYPE CODE!
Please enter a command
ct = program ctek
... (5 Replies)
Discussion started by: tdalyman
5 Replies
3. UNIX for Dummies Questions & Answers
I have written the following code in cygwin to create directories in windows based on the parameter passed.
echo $1 > fullpath
path1=`awk -F / '{print $1}' $fullpath
path2=`awk -F / '{print $2}' $fullpath
if
then
if
then
if
then
continue
... (4 Replies)
Discussion started by: janardhanamk
4 Replies
4. UNIX for Advanced & Expert Users
Dear all;
kindly need your help in knowing what is the problem in scenario below:-
1- I have Strawberry Perl (version 5.12.0) installed on my win32 PC.
2- I have Apache server (version 2.2.16) installed on my PC as well.
I tried to install mod_perl2 using CPAN... (2 Replies)
Discussion started by: ahmad.diab
2 Replies
5. SuSE
good friends I am new to linux and I have the following
TELNET service problem entering data devo
telnet to a Windows server 2003 server and passes
will not let me since the move to this server by
telnet tells me the characters and thus invalidates me
income, I have a service application... (1 Reply)
Discussion started by: pepetico
1 Replies
6. UNIX for Dummies Questions & Answers
Hello,
I am having problems with using less on
Linux version 2.6.18-92.1.17.el5 (brewbuilder@hs20-bc1-7.build.redhat.com) (gcc version 4.1.2 20071124 (Red Hat 4.1.2-42)). I am using csh but have the same problems on bash.
If I pipe something to less it works perfectly i.e. cat file | less... (9 Replies)
Discussion started by: z1dane
9 Replies
7. UNIX for Dummies Questions & Answers
I'm having problems uses "if"
it works fine when i do this.
#!/bin/sh
a= 10
qw= 2
w= 20
{
if && ;then
echo 3
fi
}
However if i try to do
#!/bin/sh
a= 10 (5 Replies)
Discussion started by: THM
5 Replies
8. UNIX for Dummies Questions & Answers
Hi
how can i do this?
1) shell script which writes data and time on to a file if filesystem exceeds 70% of space.
2) make entry to cron table to run a script every 15 mins.
and can anyone expplain or demonstrate the difference between variables used in inside a function and outside a... (3 Replies)
Discussion started by: vivekshankar
3 Replies
9. UNIX for Advanced & Expert Users
I'm trying to compile and install both most recent version of 'make' and the
most recent version of 'openssh' on my Sparc20.
I've run into the following problems... and I don't know what they mean. Can
someone please help me resolve these issues?
I'm using the 'make' version that was... (5 Replies)
Discussion started by: xyyz
5 Replies