Search Results

Search: Posts Made By: atechcorp
7,664
Posted By atechcorp
Thanks a ton! for your help :)
Thanks a ton! for your help :)
7,664
Posted By atechcorp
Send output of a command as an email
Hello Unix Experts!

We are on AIX 6.1 TL6

I am trying to develop a script that does the following:

It should send the output of "df -g /directory/folder" command as an email to a...
2,737
Posted By atechcorp
Thank you! I also have another question,...
Thank you!

I also have another question, but i dont know if i must open a new thread.

In the crontab, i need to include shutdown command and also the start up command in the following order
...
2,737
Posted By atechcorp
This means: 0 min/ of the 3rd hour/ of every...
This means:

0 min/ of the 3rd hour/ of every day / every hour / Monday

Am i correct ?
2,737
Posted By atechcorp
Reading a crontab 3 * * 1,3,5 /path/of/script.sh
Hi!

We are on AIX 6.1 TL6

I am an Admin for a Content Management application that is hosted on an AIX machine and i am supposed to come up with a cronjob that runs every monday at 03:00 am.
...
Forum: AIX 02-22-2012
99,304
Posted By atechcorp
How to find out and kill all processes for a user?
Hi!

We are using AIX 5.3.

Can anyone please guide me to find out all the running processes for a specific user, say ' admin' and also kill them by force.

Thanks!
atech
29,383
Posted By atechcorp
Thanks again Sir! God bless this forum and...
Thanks again Sir! God bless this forum and wonderful people like you who have the passion to share knowledge!

It worked!!

Thanks so much!
29,383
Posted By atechcorp
Wow!!!! It worked! You are a genuis Sir. Thanks...
Wow!!!! It worked! You are a genuis Sir. Thanks so much.

Now, if i want to list the same files into a Txt file, can i have the command to do that? We need to have the list of all these...
29,383
Posted By atechcorp
Actually i forgot to mention but i already tried...
Actually i forgot to mention but i already tried this... :) and it gave the following error:

"Argument list too long".

Can you help me with this ? Thanks so much for you reply!
29,383
Posted By atechcorp
How to count the number of files starting with a pattern in a Directory
Hi!

In our current directory there are around 35000 files.

Out of these a few thousands(around 20000) start with, "testfiles9842323879838".

I want to count the number of files that have...
Forum: What is on Your Mind? 02-17-2011
1,671
Posted By atechcorp
Thank you Unix.com
Hello!

I am posting this thread to thank all the users and participants of Unix.com.

I just registered a couple of days ago. Being kinda new to shell scripting, i was looking for support at...
15,844
Posted By atechcorp
Thank you! All my concerns are cleared
Thank you! All my concerns are cleared
15,844
Posted By atechcorp
I only guess this code but i am glad you...
I only guess this code but i am glad you confirmed it.

So is the command "crontab -e " correct ? to enter that code to schedule the script?

After that if i want to make changes to that...
15,844
Posted By atechcorp
How to add a script to Crontab?
Hi!

We are on AIX 5.3

I have a script that must be run once every hour.

How do i add this to the crontab?

I know how to access crontab which is, crontab -e.

What do i do after...
11,483
Posted By atechcorp
The previous format you gave fit much better. ...
The previous format you gave fit much better.

Thank you!
11,483
Posted By atechcorp
The file must be renamed like this: ...
The file must be renamed like this:
bpm021520110130.log
11,483
Posted By atechcorp
Yes. I knew it should be mv for sure. But i did...
Yes. I knew it should be mv for sure. But i did not know about adding the Date+Time stamp.

Will try this.

Thank you!
11,483
Posted By atechcorp
If(Condition) Rename a file with (Date+Time) Stamp
Hi!

Please see our current script:
#!/usr/bin/ksh
if (egrep "This string is found in the log" /a01/bpm.log)
then
mailx -s "Error from log" me@email.com, him@email.com </a01/bpm.log
fi
...
3,569
Posted By atechcorp
This should do the job ... Thanks so much...
This should do the job ...

Thanks so much ..

have a great weekend!
3,569
Posted By atechcorp
How to read specific line of text from a Script and send email notification
Hi !

I am a newbie and never officially wrote a shell script before.

The requirement for this script is :

1) Read a file called 'bpm.log' and identify if it has a specific text such as...
Showing results 1 to 20 of 20

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