Search Results

Search: Posts Made By: skooly5
3,490
Posted By skooly5
Iptables error
Hi,

I am running CentOs 5 and every time i try to restart my iptables "service iptables restart", I get this error message:

Flushing firewall rules: [ OK ]...
2
1,601
Posted By skooly5
help!
Ok heres my problem. I was in vi editing a quotaname.1.gz file and everything was working fine. Now when I try to vi or even cat that same file or any files for that matter in the same directory...
7,553
Posted By skooly5
if test statement
Can you use an if [ test ] statement after an else?

example

if [ -O $1 ]
then
echo "word"
else

if [ -O $2 ]
then
echo "word"
7,759
Posted By skooly5
when I run my program and enter 2 arguments at...
when I run my program and enter 2 arguments at the command line it is not checking to see if the 2 arguments are files or not.

I have tried

if [ -f filename ]
elif [ -f $1 -o $2 ]

I guess I...
7,759
Posted By skooly5
testing if files exist
I am trying to test arguments to see if they are files in any directory.

I have :
[ $# -f 0 ]

but it's not working
1
or
1,383
Posted By skooly5
or
What is the symbol for "or" ?

I am trying to say: enter Y or y
6,653
Posted By skooly5
command line arguments
--------------------------------------------------------------------------------

I have this while loop and at the end I am trying to get it to tell me the last argument I entered. And with it...
Forum: Linux 04-07-2008
3,045
Posted By skooly5
running test
--------------------------------------------------------------------------------

I am running a test command and if the user is not found you have to type exit and it wiil exit. Ok I did that. But...
1
2,193
Posted By skooly5
test
I am running a test command and if the user is not found you have to type exit and it wiil exit. Ok I did that. But if the user is found it is supposed to finger them. But my problem is it makes...
3,551
Posted By skooly5
that worked except now when it counts down it...
that worked except now when it counts down it stops at 2.
5
4
3
2

The last command line you entered is $1.

Can I get the 1 back? So it reads

5
4
3
2
1

The last command line you...
3,551
Posted By skooly5
command line args 2
I have this while loop and at the end I am trying to get it to tell me the last argument I entered. And with it like this all I get is the sentence with no value for $1. Now I tried moving done...
2,445
Posted By skooly5
thanks that worked.
thanks that worked.
2,445
Posted By skooly5
command line args
I am trying to print command line arguments one per second. I have this

while [ $# -gt 0 ]
do

echo "6"
shift
echo "5"
shift
echo "4"
shift
echo "3"
shift
echo "2"
shift
echo "1"...
1,408
Posted By skooly5
help with shell script!!!
Hi I need help putting these directions in a shell script. The directions are:

The text: Please enter a user name to find. THe program then checks to see if the user exists on the system and if...
Showing results 1 to 14 of 14

 
All times are GMT -4. The time now is 01:01 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy