Much like plink -- or any other command -- if you don't feed commands into su, they don't get fed into su. It doesn't just "take over" the script you're running.
Fortunately, it's a lot easier to feed things into a program in UNIX sh than in CPM.
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 REDHAT
psmandup
PSMANDUP(1) FSF PSMANDUP(1)NAME
psmandup - print duplex on non duplex printers
SYNOPSIS
psmandup FILE
DESCRIPTION
Tries to produce a version of the PostScript FILE to print in manual Duplex.
OPTIONS -h, --help
display this help and exit
-v, --version
display version information and exit
-q, --quiet
don't print informational messages
-o, --output=FILE
save result in FILE. If FILE is `-', send to stdout
-n, --no-fix
don't call fixps to fix PS problems in FILE
-f, --front
output only the front pages (recto) on the regular tray
-b, --back
output only the back pages (verso) on the manual feed tray
Produced output is meant for PS level 2 printers which don't support Duplex printing, but support Manual Feed. Once the first set of pages
is printed (odd pages), manual feed is asked: introduce the odd pages to print the even pages on the other side.
Because there is usually a short time out for manually fed jobs, you should really be next to the printer. If ever the time out expired,
use the option -b to send only the missing part.
Environment variables FIXPS, PSSELECT and PSSET, if defined, are used to find the tools.
News, updates and documentation: http://www.inf.enst.fr/~demaille/a2ps/
AUTHOR
Written by Akim Demaille.
REPORTING BUGS
Report bugs to <bug-a2ps@gnu.org>
COPYRIGHT
Copyright (C) 1998-1999 Akim Demaille, Miguel Santana
This is free software; see the source for copying conditions. There is NO warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICU-
LAR PURPOSE.
SEE ALSO a2ps(1), card(1), fixps(1), pdiff(1), psset(1), texi2dvi4a2ps(1).
The full documentation for psmandup is maintained as a Texinfo manual. If the info and psmandup programs are properly installed at your
site, the command
info psmandup
should give you access to the complete manual.
psmandup 2.1 (GNU a2ps 4.13) February 2000 PSMANDUP(1)