You haven't fed that code into plink, therefore it's not being fed into plink.
CPM-style commandline doesn't have many effective redirection methods, so this is much harder in CMD than it would be in shell. It would be far better to save the commands you want in an external file so you could do:
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)
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)
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)
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)
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)
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)
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)
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)
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
LEARN ABOUT DEBIAN
bsqlodbc
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)