nixCraft Linux Forum

nixCraft

Linux Tech Support Forum

running command a root in shell scripts

This is a discussion on running command a root in shell scripts within the Shell scripting forums, part of the Development/Scripting category; Dear all, How do i run command a root in shell scripts? Some commands need root access how do i ...


Go Back   nixCraft Linux Forum > Development/Scripting > Shell scripting

Register FAQ Members List Calendar Forgotten your password? Mark Forums Read
  #1 (permalink)  
Old 07-17-2006, 03:30 AM
Member
User
 
Join Date: Feb 2005
Posts: 66
Rep Power: 0
chiku
Default running command a root in shell scripts

Dear all,

How do i run command a root in shell scripts? Some commands need root access how do i do it.. i cannot use su in shell script? am i missing something here

give me an example or command name

thanks
__________________
There's no place like 127.0.0.1
Reply With Quote
Sponsored Links
  #2 (permalink)  
Old 07-17-2006, 07:39 PM
nixcraft's Avatar
Never say die
User
 
Join Date: Jan 2005
Location: BIOS
My distro: Ubuntu
Posts: 1,036
Rep Power: 10
nixcraft has a reputation beyond repute nixcraft has a reputation beyond repute nixcraft has a reputation beyond repute nixcraft has a reputation beyond repute nixcraft has a reputation beyond repute nixcraft has a reputation beyond repute nixcraft has a reputation beyond repute nixcraft has a reputation beyond repute nixcraft has a reputation beyond repute nixcraft has a reputation beyond repute nixcraft has a reputation beyond repute
Default

CHk out old topic, it has all info and examples

http://forum.cyberciti.biz/how-to-us...ipt-vt405.html
__________________
Vivek | My personal blog
Linux Evangelist
Play hard stay cool
Reply With Quote
Reply

Bookmarks


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)

 
Thread Tools
Display Modes

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

Similar Threads

Thread Thread Starter Forum Replies Last Post
SSH - Passing Unix login passwords through shell scripts arulkumarr Shell scripting 4 08-27-2008 10:22 PM
UNIX command to find out whether particular process of a particular user is running Santosh Sharma Shell scripting 1 01-17-2008 04:26 PM
shell scripts required for students roni Shell scripting 6 07-20-2007 07:21 PM
Linux delete mail for root or any other user from a shell prompt raj Getting started tutorials 0 05-05-2007 02:36 AM
required help for running a shell script from browser vaishalichitale Shell scripting 1 06-27-2006 05:53 PM


All times are GMT +5.5. The time now is 06:46 PM.


Powered by vBulletin® Version 3.7.4 - Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Optimization by vBSEO 3.2.0

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36