The UNIX and Linux Forums  
Hello and Welcome from United States to the UNIX and Linux Forums! Thank You for Visiting and Joining Our Global Community.

Go Back   The UNIX and Linux Forums > Top Forums > UNIX for Dummies Questions & Answers
.
google unix.com



UNIX for Dummies Questions & Answers If you're not sure where to post a UNIX or Linux question, post it here. All UNIX and Linux newbies welcome !!

More UNIX and Linux Forum Topics You Might Find Helpful
Thread Thread Starter Forum Replies Last Post
SSH problems ysk UNIX for Advanced & Expert Users 1 07-19-2007 05:16 AM
Problems AIX and SAN. fjgonzalez AIX 4 07-18-2007 05:15 PM
Problems with Last By_Jam UNIX for Advanced & Expert Users 3 09-29-2006 03:12 AM
'make' problems (compliation problems?) xyyz UNIX for Advanced & Expert Users 5 11-05-2001 10:47 PM
rcp problems Kelam_Magnus UNIX for Advanced & Expert Users 4 10-19-2001 01:29 PM

Closed Thread
English Japanese Spanish French German Portuguese Italian Dutch Swedish Russian Norwegian Hungarian Hebrew Danish Powered by Powered by Google
 
LinkBack Thread Tools Search this Thread Rate Thread Display Modes
  #1 (permalink)  
Old 05-21-2005
vivekshankar vivekshankar is offline
Registered User
  
 

Join Date: May 2005
Posts: 69
Few problems

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 funstion(both variables hav the same name)

ps : this is not homwork.....i am working ..i jus wante dto learn unix and doin some case studies...

Thanks and Regards
Vivek.S
  #2 (permalink)  
Old 05-21-2005
zazzybob's Avatar
zazzybob zazzybob is offline Forum Advisor  
Registered Geek
  
 

Join Date: Dec 2003
Location: Melbourne, Australia
Posts: 2,100
1)
man df
man grep
man date
man <whatever shell you use>

That should be all you need... maybe "man sed" and "man awk" too if you're feeling adventurous - there are many ways to solve this.

2)
man cron

Part of the fun of learning UNIX is searching these forums and Google - a voyage of discovery....

People are not going to write your scripts for you. We are all more than willing to help people and answer specific questions - not regurgitate manual pages and write complete solutions.

Cheers
ZB
  #3 (permalink)  
Old 05-21-2005
vivekshankar vivekshankar is offline
Registered User
  
 

Join Date: May 2005
Posts: 69
hi ,
sorry ......i was trying with man......but i am omplete newbee.....i wasnt ablt understand head or tail of it......i have tried for over 2 hrs without bien able get a proper solution which works...tahst y i posted on forums...anyway its not homework or anything..it jus for learning myself....:-)


anyway ill go back and try again!! (what am i doin on weekend ?? !! :-)) )

THANKS

regards
vivek.s
  #4 (permalink)  
Old 05-21-2005
vivekshankar vivekshankar is offline
Registered User
  
 

Join Date: May 2005
Posts: 69
Hi,
I used
0,15,30,45 * * * * echo "hello" >> hellofile.txt

will the file be created automatcially....will the job be sceduled automatically or shud i run any command to start cron up?

Thanks and Regards
Vivek.s
Sponsored Links
Closed Thread

Bookmarks

Tags
learn unix

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On




All times are GMT -4. The time now is 05:44 AM.


Powered by: vBulletin, Copyright ©2000 - 2006, Jelsoft Enterprises Limited. Language Translations Powered by .
vBCredits v1.4 Copyright ©2007 - 2008, PixelFX Studios
The UNIX and Linux Forums Content Copyright ©1993-2009. All Rights Reserved.Ad Management by RedTyger

Content Relevant URLs by vBSEO 3.2.0