automatically update ??


 
Thread Tools Search this Thread
Top Forums Shell Programming and Scripting automatically update ??
# 1  
Old 04-04-2009
Data 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  
Old 04-04-2009

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  
Old 04-05-2009
Quote:
Originally Posted by cfajohnson

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.
Login or Register to Ask a Question

Previous Thread | Next Thread

8 More Discussions You Might Find Interesting

1. Solaris

How to update Solaris 10 Update 3 to Update 11?

Hi friends, We have a Solaris machine running 10 update 3 -bash-3.2# cat /etc/release Solaris 10 11/06 s10s_u3wos_10 SPARC Copyright 2006 Sun Microsystems, Inc. All Rights Reserved. Use is subject to license terms. ... (6 Replies)
Discussion started by: prvnrk
6 Replies

2. Solaris

Solaris 11 - Automatically update local IPS repository

Hi guys, I've got a local IPS repository on server 1 (local server in the basement) and a second one on server 2 in another data center. Both servers act as repository servers for their locations. The publisher list is like this pkg publisher PUBLISHER TYPE STATUS... (4 Replies)
Discussion started by: dheitepriem
4 Replies

3. Red Hat

RedHat 5 update 9 BASH update issue

Hi i want to update the BASH because of the "shell shock" vulnerability. my RedHat 5 is clean install with the default mirror site. when im running the command: yum update bash im getting a message saying there is no update. you can see in the attach picture... what am i doing wrong? is... (4 Replies)
Discussion started by: guy3145
4 Replies

4. Programming

MYSQL - trigger update on record insert or update

Right I have a MYSQL database with table1 with 3 columns, colA, colB and colC. I want to combine the data in the 3 columns into a 4th column names col_comb. Here's the SQL command that works: UPDATE table1 SET `col_comb` = CONCAT( `colA` , ' - ', `colB` , ', ', `colC` ); So now I want this... (5 Replies)
Discussion started by: barrydocks
5 Replies

5. HP-UX

How can i install HP-UX OS automatically?

Hello Friends, I need to install HP-UX OS automatically on HP servers. If anybody know this. Please comment on it and share the steps as well. Thanks & Reagrds, Sameer (2 Replies)
Discussion started by: sameer007
2 Replies

6. Solaris

Install update 6 on solaris with update 3

I want to update my solaris 10 server which is currently on update 3 stage. A new application require it to be on update 6. What is the best way to make it update 6. should i just install the patch or should i go for the liveupgrade?? thanks for you help in advance (3 Replies)
Discussion started by: uxravi
3 Replies

7. Red Hat

How to open terminal automatically.

hi, I am using red hat .I want that when ever the user login in GUI interface the terminal windows automatically open and then the user want to logout it 1st close the terminal and then login. There is a file in #ls -a i.e .bashrc and .bash_logout I does not know how to add my... (0 Replies)
Discussion started by: mypass
0 Replies

8. Shell Programming and Scripting

automatically open

Hi I am trying to write a script to automatically use a predefined program to open a file according to its extension... But I don't know how to pass "programeta" ... :confused: while ]; do case $1 in -pdf ) programeta="kpdf" shift 1 ;; ... (1 Reply)
Discussion started by: pau
1 Replies
Login or Register to Ask a Question