10 More Discussions You Might Find Interesting
1. UNIX for Beginners Questions & Answers
in a server we can't login with root user directly but i can login with different user and then i can switch to root user by su command
is there anyway where i can write a script without mentioning password in file as mentioning the root password is not the... (3 Replies)
Discussion started by: scriptor
2. Shell Programming and Scripting
I want to create a script which will require a mandatory value and optional values which can be supplied using switch. If optional values are not supplied, the script will use the default values mentioned in the script.
For example, how we create user in linux systems.
Please... (3 Replies)
Discussion started by: atanubanerji
3. Shell Programming and Scripting
I am writing a korn shell script where i need to switch to root in between and again exit from root to normal user and continue other commands.
Is that possible to switch between these two in the same script? (1 Reply)
Discussion started by: santosh2626
4. UNIX for Advanced & Expert Users
I need a script to change server automatically after performing some operations.
The command for changing server is ssh username@servername . Then a prompt comes to enter a password. Then i need to perform some opertaions on the other server. How can i do this in a script? (1 Reply)
Discussion started by: pratikm23
5. Shell Programming and Scripting
From above, script1.sh is the main script which is executed from root user, creates installation directory, changing ownership and execution rights etc..etc.. and finally calls scripot2.sh and script3.sh to create the database as well as for post... (1 Reply)
Discussion started by: milink
6. Shell Programming and Scripting
I'm trying to write a shell script to stop few things where i have to use another user to execute a command. Otherwise it will not work.
Your help is really appreciated
Thanks, (16 Replies)
Discussion started by: Afi_Linux
7. Shell Programming and Scripting
This is my first ever post to any forum so, dont let this go in vain...........:)
Here is the scenario........
I have logged into the unix where oracle_sid is initialized for some X database in the .profile.
I have a unix script where some sql query which fetches data from X... (3 Replies)
Discussion started by: sachinkl
8. Shell Programming and Scripting
Is there any way to switch user inside a shell script? (4 Replies)
Discussion started by: ./hari.sh
9. Shell Programming and Scripting
Hi, have managed to code a script that has a simple menu so for instance if I run:
this will call a help function that displays the programs help, I have coded this in using a case statement so if: case is h) call the help function
The problem is I don't know how to code in the... (3 Replies)
Discussion started by: Del33t
10. Shell Programming and Scripting
I wrote a unix script that will perform differnt tasks on bahalf of number of users. I use "sudo" to run the script. The problem is when I execute the command: su - user -c "xxx " > output_file, I get the system output header frm the su command. Is there a way to get rid of it instdead of... (2 Replies)
Discussion started by: nimo