The UNIX and Linux Forums  


Go Back   The UNIX and Linux Forums > Top Forums > Shell Programming and Scripting
.
google unix.com



Shell Programming and Scripting Post questions about KSH, CSH, SH, BASH, PERL, PHP, SED, AWK and OTHER shell scripts and shell scripting languages here.

More UNIX and Linux Forum Topics You Might Find Helpful
Thread Thread Starter Forum Replies Last Post
how to run a Script automatically hamsa UNIX for Dummies Questions & Answers 4 10-18-2006 05:09 PM
automatically open pau Shell Programming and Scripting 1 06-04-2006 01:24 PM
How to run three scripts one after another automatically??? arunava_maity UNIX for Dummies Questions & Answers 3 05-04-2001 09:46 AM
How to run a script automatically ????? arunava_maity UNIX for Dummies Questions & Answers 7 05-02-2001 11:37 PM

Closed Thread
English Japanese Spanish French German Portuguese Italian Dutch Swedish Russian Norwegian Hungarian Hebrew Danish Bulgarian Greek Powered by Powered by Google
 
LinkBack Thread Tools Search this Thread Rate Thread Display Modes
  #1 (permalink)  
Old 04-04-2009
deb.simply deb.simply is offline
Registered User
  
 

Join Date: Jan 2009
Location: India
Posts: 5
Unhappy automatically update ??

Hi,
This is deb, i have problem an a script for that i need some help and support.

problem is .....

i have a file called 'empdetails'

i want to add every update or modification of a particular employee to that file (like swap in or swap out,salary,emp id etc.)

and the file is automatically update or new data will be automatically added to that file in each and every day.

so, can i use 'crontab' for this or any other solution is there ???

can anybody give me some logic.
  #2 (permalink)  
Old 04-04-2009
cfajohnson's Avatar
cfajohnson cfajohnson is offline Forum Advisor  
Shell programmer, author
  
 

Join Date: Mar 2007
Location: Toronto, Canada
Posts: 2,372

It's not clear exactly what you want.

Where does the update or modification come from?

Once you have it, you can do:


Code:
printf "%s\n" "...new information..." >> empdetails

  #3 (permalink)  
Old 04-05-2009
deb.simply deb.simply is offline
Registered User
  
 

Join Date: Jan 2009
Location: India
Posts: 5
Quote:
Originally Posted by cfajohnson View Post

It's not clear exactly what you want.

Where does the update or modification come from?

Once you have it, you can do:


Code:
printf "%s\n" "...new information..." >> empdetails


hello sir,
Thank u for ur kind attentation.

already employee database is there.
i want a particular employee data to be update automatically to 'empdetails' file every day.

suppose emp name = 'x'
Now , i have to write a script which automatically update (emp id,name,swp in,swap out,commesion etc.) to 'empdetails' file every day.
Closed Thread

Bookmarks

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 12:21 PM.


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