Search Results

Search: Posts Made By: Waffles
1,674
Posted By Waffles
ok. this is my updated code: #!/bin/csh ...
ok. this is my updated code:

#!/bin/csh
set var1 = `tty`
if [ $var1 = "/dev/pts/8" ]; then echo "This is a friendly message :D "; fi

Im still getting a-
if: Expression Syntax.
-error. why...
1,674
Posted By Waffles
Comparing a command with a string
Is this possible? If so it seems like a very easy and short script.I'd like to make a script that will print a friendly message but only if it is on your personal terminal. so the code would look...
1,822
Posted By Waffles
How to check if something is a file, directory or other?
I want to know how you would go about checking if something is either a file or a directory. mostly for argument validation stuff.

I know -d is to see if its a directory but im guessing -f is for...
4,308
Posted By Waffles
A simple Backup script
Use and complete the template provided. The entire template must be completed. If you don't, your post may be deleted!

1. The problem statement, all variables and given/known data:
All I have to...
Showing results 1 to 4 of 4

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