The UNIX and Linux Forums  

Go Back   The UNIX and Linux Forums > Top Forums > UNIX for Advanced & Expert Users
Google UNIX.COM


UNIX for Advanced & Expert Users Advanced UNIX and Linux questions go here. Expert-to-Expert.

More UNIX and Linux Forum Topics You Might Find Helpful
Thread Thread Starter Forum Replies Last Post
Unix Shell Scripting premamadhuri Shell Programming and Scripting 4 11-05-2007 12:31 AM
Shell Scripting (Unix) tt1ect Shell Programming and Scripting 3 04-15-2007 06:15 AM
Unix shell scripting Maruthi Kunnuru Shell Programming and Scripting 4 05-22-2006 09:19 PM
difference between AIX shell scripting and Unix shell scripting. haroonec Shell Programming and Scripting 2 04-12-2006 05:12 AM
Unix shell scripting la_burton UNIX for Dummies Questions & Answers 6 10-22-2004 08:41 AM

Reply
 
Submit Tools LinkBack Thread Tools Search this Thread Display Modes
  #1  
Old 02-07-2008
Registered User
 

Join Date: Feb 2008
Posts: 3
Need your Help on Unix Shell Scripting.........

Hi Friends,

1. Bash Shell Scrpt to take backup at evening
2. I need a bash shell script for killing all processes.
Reply With Quote
Forum Sponsor
  #2  
Old 02-07-2008
HPAVC's Avatar
Registered User
 

Join Date: Feb 2008
Posts: 105
Quote:
Originally Posted by vinayraj View Post
Hi Friends,

1. Bash Shell Scrpt to take backup at evening
2. I need a bash shell script for killing all processes.
take meaning tape? add the tape backup the your crontab

there is a command called killall usually on your system as well as killuser which will kill a user's processes. If you kill 'all' the processes or the processes in a bad order your going to do damage to your machine's install.
Reply With Quote
  #3  
Old 02-07-2008
Registered User
 

Join Date: Oct 2007
Location: Wellington, New Zealand
Posts: 30
show us what you've got so far. what operating system? doing backups can depend on the OS and the file system being used. solaris would probably use ufsdump, linux would probably just use dump, but you can also use tar, or cpio, or rsync. it would also depend on what you're backing up to, what your schedule is, and how much data you're backing up. less important may come into consideration such as are you backing up NFS mounts as well, or SAN or NAS shares?

number two is easy:

Code:
#!/bin/bash
init 0
Reply With Quote
  #4  
Old 02-07-2008
Registered User
 

Join Date: Feb 2008
Posts: 3
Hi Idle

actually I was working on Sun solaris Unix as Test Engineer. but now working QTP. ance i want to switch to Unix environment. so can u help me by providing some scenarious/situations usually we write shell scripts
Reply With Quote
  #5  
Old 02-07-2008
Registered User
 

Join Date: Oct 2007
Location: Wellington, New Zealand
Posts: 30
I find it easier helping someone who has made an effort to learn something first. once they're stuck, they can be unstuck, but teaching you everything without knowing more details about what you're trying to achieve is too much for me.

maybe someone else can help with that.
Reply With Quote
  #6  
Old 02-08-2008
Bughunter Extraordinaire
 

Join Date: May 2005
Location: In the leftmost byte of /dev/kmem
Posts: 1,262
Quote:
Originally Posted by idle View Post
I find it easier helping someone who has made an effort to learn something first. once they're stuck, they can be unstuck, but teaching you everything without knowing more details about what you're trying to achieve is too much for me.
Amen to that. Additionally i would like to know what drove you to the "Advanced & Expert Users" forum? Do you think the "Unix for Dummies" is below you?

*grrrr*

bakunin
Reply With Quote
Google The UNIX and Linux Forums
Reply

Tags
linux

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes




All times are GMT -7. The time now is 06:48 PM.


Powered by: vBulletin, Copyright ©2000 - 2006, Jelsoft Enterprises Limited.
The UNIX and Linux Forums Content Copyright ©1993-2008. All Rights Reserved.Ad Management by RedTyger Visit The Complex Event Processing Blog

Content Relevant URLs by vBSEO 3.2.0