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 Expert-to-Expert. Learn advanced UNIX, UNIX commands, Linux, Operating Systems, System Administration, Programming, Shell, Shell Scripts, Solaris, Linux, HP-UX, AIX, OS X, BSD.

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 03:31 AM
Shell Scripting (Unix) tt1ect Shell Programming and Scripting 3 04-15-2007 10:15 AM
Unix shell scripting Maruthi Kunnuru Shell Programming and Scripting 4 05-23-2006 01:19 AM
difference between AIX shell scripting and Unix shell scripting. haroonec Shell Programming and Scripting 2 04-12-2006 09:12 AM
Unix shell scripting la_burton UNIX for Dummies Questions & Answers 6 10-22-2004 12:41 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 02-07-2008
vinayraj vinayraj is offline
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.
  #2 (permalink)  
Old 02-07-2008
HPAVC's Avatar
HPAVC HPAVC is offline
Registered User
  
 

Join Date: Feb 2008
Posts: 106
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.
  #3 (permalink)  
Old 02-07-2008
idle idle is offline
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

  #4 (permalink)  
Old 02-07-2008
vinayraj vinayraj is offline
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
  #5 (permalink)  
Old 02-07-2008
idle idle is offline
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.
  #6 (permalink)  
Old 02-08-2008
bakunin bakunin is offline Forum Staff  
Bughunter Extraordinaire
  
 

Join Date: May 2005
Location: In the leftmost byte of /dev/kmem
Posts: 1,641
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
Closed Thread

Bookmarks

Tags
linux

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 11:24 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