Anyways i tried your solution era the value for STATUS is still 2 for the second run. So in other words i still get the email because the return value for the mkdir -777 command is not 0. It's 0 only the first time when it runs.
The second time is 2 because the directories are already created in the remote machine and it tries to create it again.
I have been searching on google for this problem but not yet lucky.
Hi folks.
I'm just starting to teach myself shell scripting and am having some trouble with an if statement. I am working with a directory where only one file will reside at a time and need to evaluate if this file is compressed to determine subsequent steps. I'm using echo for testing purposes.... (2 Replies)
Hey all. I am trying to find a process that is running and appending it to a file. The comman I am using is
ps -eaf |grep tctl.
The problem is, it returns the tctl process as well as the grep process that I just ran. Is there a flag that will prevent the command from returning itself?
... (2 Replies)
I currently have one user (USER1) that's a member of group 'A'.
I want to create a bunch of users and have them all have access to READ all of USER1's files. Should I create all of the new users and have them all be members of a new group (group 'B')?? It looks like when USER1 creates a file it... (2 Replies)
hello everybody and a happy new year!
i am trying the client-server model...i have no problem with sockets etc...
especially for server:there is a father who is listening for TCP connections from clients,the later send commands which parent shares to his children.
then children execute... (1 Reply)
I'm running an arp -an on a Solaris 10 box. We're using IPMP. One of the systems is not able to see a host on the same network. The only difference between the two systems (one is having a problem, the other isn't) at least so far is the output of arp:
# arp -an | grep 224.55
e1000g5... (1 Reply)
Hi there,
I need your help in understanding the below Solaris 10 ifconfig output;
athnetspns02>ifconfig -a
lo0: flags=2001000849<UP,LOOPBACK,RUNNING,MULTICAST,IPv4,VIRTUAL> mtu 8232 index 1
inet 127.0.0.1 netmask ff000000
e1000g0:... (2 Replies)
Hi there,
I'm currently preparing for an exam and came across a question that I don't really know how to answer.
"You want to set up a hard drive for a videoserver under linux.
- The videofiles will have a size of at least 10MB and a maximum of 8BG.
- The hard drive has a disk space of... (1 Reply)
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:
You want to set up a hard drive for a videoserver under linux.
- The videofiles will have a size of at least... (1 Reply)
hello:
how could i view the file's flags? "ls -loa" doesn't seem to do the trick:
root@giraffe:/etc # ls -alo
total 820
drwxr-xr-x 23 root wheel - 2048 Oct 23 19:48 .
drwxr-xr-x 19 root wheel - 1024 Nov 16 15:01 ..
drwxr-xr-x 2 root wheel - 512 Nov 11 2014 X11... (6 Replies)