Sponsored Content
Top Forums Shell Programming and Scripting Execute Shell script via Plink Post 302912488 by lingu85 on Friday 8th of August 2014 02:19:58 PM
Old 08-08-2014
"Sorry, user is not allowed to execute '/bin/su ΓΗτ devuser' as root on
servername."
The above is the error that I get.
Basically my user does not have access to execute the script on the folder that I mentioned.
Does it mean that the sudo didnt implement at all?

---------- Post updated at 01:19 PM ---------- Previous update was at 12:55 PM ----------

The below is the piece of code I had in command.txt
Code:
sudo su - devuser
cd /opt/sample
echo 3 .Script.sh

 

10 More Discussions You Might Find Interesting

1. Shell Programming and Scripting

How to execute shell Script?

I am new to UNIX , Can any one let me know how to execute shell script (i.e which command I have to use for the same). Any help would be appreciated. Thanks siva mymvs999@yahoo.com (3 Replies)
Discussion started by: siva
3 Replies

2. UNIX for Dummies Questions & Answers

Execute Shell Script

Hi all, I am begginer of UNIX . I dont know if i have a script written in korn shell with .ksh extention . If i want to execute that how can i do that? Can anybody suggest the best book to learn korn shell scripting. Thanks sam71 (1 Reply)
Discussion started by: sam71
1 Replies

3. Shell Programming and Scripting

plink and shell script

This is my shell script... test.sh DIRECTORY=/XYZ/PQR if ; then echo "In test.." else echo "lno.." fi when i run this script through a putty its output is: ./test.sh: line 2: [: too many arguments lno.. But when i run the same script using plink its running fine and its... (5 Replies)
Discussion started by: praveen.1
5 Replies

4. Shell Programming and Scripting

not able to execute shell script

HI, bash-2.05# more mysqlstoporaclestart.sh #!/bin/sh mysqladmin -u root -pengineer shutdown su - oracle -c "bash /export/home/oracle/oracle.sh" bash-2.05# more /export/home/oracle/oracle.sh /oracle/bin/sqlplus "/as sysdba"<< EOF startup nomount... (2 Replies)
Discussion started by: prakash.gr
2 Replies

5. Shell Programming and Scripting

Execute unix shell script to text file using the script

Hi all, I am beginner in UNIX...I want to use unix shell script to create text.file...I know how to use using by command...can anybody tell me for the script? Thanks i changed the threads title from "tex file" to "text file", because "tex" would probably be misunderstood as reference to... (4 Replies)
Discussion started by: mastercar
4 Replies

6. Shell Programming and Scripting

How to use ssh execute other shell script on other host (shell script include nohup)?

i want use ssh on the host01 to execute autoexec.sh on the host02 like following : host01> ssh host02 autoexec.sh autoexec.sh include nohup command like follwing : nohup /home/jack/deletedata.sh & after i execute ssh host02 autoexec.sh one the host01. i can't found deletedata.sh... (1 Reply)
Discussion started by: orablue
1 Replies

7. UNIX for Dummies Questions & Answers

can't execute a shell script

Hi all, As i want to know how the shell command "nohup" worked.I logged in as the user named vincent through Gnome.Then i press ctrl+atl+F1 changed into a console and logged in as another user named kinsley.The user "kinsley" is added by me with "useradd",and now there's no HOME directory for... (6 Replies)
Discussion started by: homeboy
6 Replies

8. Shell Programming and Scripting

Dos batch script to execute unix shell script

Can anyone help me with a dos batch script to execute a shell script residing in an unix server. I am not able to use ssh. Thanks in advance (2 Replies)
Discussion started by: Shri123
2 Replies

9. Shell Programming and Scripting

Execute shell script without using sh

Hi Experts, I want to execute shell script(on HP-UX) wihout specifying interpreter. For e.g generally we use following command to execute shell sh test.sh but I want to execute it as test.sh currently if I execute directly it as test.sh it is giving error Commnd Not... (7 Replies)
Discussion started by: sai_2507
7 Replies

10. Shell Programming and Scripting

Batch script to execute shell script in UNIX server

Hi team, My requirement is to transfer pdf files from windows machine to unix server and then from that unix server we should sftp to another server. I have completed the first part i.e From windows to using to unix server with the help of psftp.exe code: psftp user@host -pw password <... (1 Reply)
Discussion started by: bhupeshchavan
1 Replies
bsqlodbc(1)							 FreeTDS Utilities						       bsqlodbc(1)

NAME
bsqlodbc - batch SQL script processor using ODBC SYNOPSIS
bsqlodbc [-U username] [-P password] [-S server] [-D database] [-i input_file] [-o output_file] [-e error_file] [-t field_term] [-qv] DESCRIPTION
bsqlodbc is a utility program distributed with FreeTDS. bsqlodbc is a non-interactive equivalent of the "isql" utility programs distributed by Sybase and Microsoft. Like them, bsqlodbc uses the command "go" on a line by itself as a separator between batches. The last batch need not be followed by "go". bsqlodbc makes use of the ODBC API provided by FreeTDS. This API is of course also available to application developers. OPTIONS
-U username Database server login name. -P password Database server password. -S server Database server to which to connect. -D database Database to use. -i input_file Name of script file, containing SQL. -o output_file Name of output file, holding result data. -e error_file Name of file for errors. -t field_term Specifies the field terminator. Default is two spaces (' '). Recognized escape sequences are tab (' '), carriage return (' '), newline (' '), and backslash ('\'). -h Print column headers with the data to the same file. -q Do not print column metadata, return status, or rowcount. Overrides -h. -v Verbose mode, for more information about the ODBC interaction. This also reports the result set metadata, including and return code. All verbose data are written to standard error (or -e), so as not to interfere with the data stream. NOTES
bsqlodbc is a filter; it reads from standard input, writes to standard output, and writes errors to standard error. The -i, -o, and -e options override these, of course. EXIT STATUS
bsqlodbc exits 0 on success, and >0 if the server cannot process the query. HISTORY
bsqlodbc first appeared in FreeTDS 0.65. AUTHORS
The bsqlodbc utility was written by James K. Lowden <jklowden@freetds.org> doc 13 November 2011 bsqlodbc(1)
All times are GMT -4. The time now is 06:58 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy