06-16-2006
I have to do on different machine some of which i dont have rights to so i will pass out to other people to change password etc through a batch file
it has 2 parts first i do ftp
from a batch files
1) ftp -i -s:c:\vicpurge.txt 10.0.0.27 ( vicpurge is a txt file contain alphnumeric numbers that changes every month
2) part i want to call putty command line from the same batch file and do the following
telnet 10.0.0.27
username
password
cd /raid
ksh
for i in $(cat Vidpurge.txt)
do
rm $i
done
quit
i dont know how the second part will work
10 More Discussions You Might Find Interesting
1. UNIX for Dummies Questions & Answers
I like to start a korn job remotely, from windows. I tried REXEC and that is not what I want. Need help !!!! thanks (4 Replies)
Discussion started by: kyawlin
4 Replies
2. Shell Programming and Scripting
Hi,
I wrote a smiple ksh function
send_notification() {
...
}
and want to execute it on each file, matched by the find command.
I tried:
find / -name "*.err" -mtime -8 -exec send_notification {} \;
but it doesn't work. What should I do? I work in ksh on Hp-Ux.
Regards,
Pit (11 Replies)
Discussion started by: piooooter
11 Replies
3. Shell Programming and Scripting
How do I execute a command containing a double quote ?
I pass a variable to grep that contains spaces, so I need to quote it,
but it does not work.
#!/usr/bin/ksh
set -x
txt='"next to"'
cmd="grep $txt ~dpearso5/file2"
echo $cmd
$cmd
This is the error I get:
+ grep "next to"... (1 Reply)
Discussion started by: pearson05
1 Replies
4. Shell Programming and Scripting
Hi,
I am executing a ksh.
I want to note the time taken to execute each command that are executed in the ksh and write it in a log file.
Also I want to note the total time taken to execute the ksh.
How can I do that?What is the command to do that? (2 Replies)
Discussion started by: Kishore_1
2 Replies
5. Shell Programming and Scripting
I am newbie in UNIX, so please excuse me for the stupid question.:)
Here is a problem:
I created ksh script where the part of the functionality include an opening of a second session with another shell process "runrep"(runrep is a custom reporting shell designed by Advent Geneva).
When I run my... (3 Replies)
Discussion started by: alexstar
3 Replies
6. Solaris
Hi,
All the scripts placed in /home/bin had 755 permissions. Sometimes scripts are failing with cannot execute errors.
Let me describe a simple scenario.
MasterScript.sh had 755 permissions. It is success most of the times. But, sometimes failing with cannot execute error.
Really... (1 Reply)
Discussion started by: sureng
1 Replies
7. Windows & DOS: Issues & Discussions
Hi all,
I'm not sure if it is correct to post here.
I am facing problem wanting to create a batch that run from my Windows XP pc to remote to multiple Solaris server to execute the server's ksh script. :wall:
Can anyone give me a hints on how to do that? Thanks. (6 Replies)
Discussion started by: beginningDBA
6 Replies
8. Shell Programming and Scripting
How to execute .sh file on Windows? (2 Replies)
Discussion started by: arunaakella
2 Replies
9. Shell Programming and Scripting
Hello, Im trying to write a ksh script that will enter the universe environment as user kourier (switching to this specific user automatically launches to the TCL prompt). At the TCL " > " prompt i want to execute two variables. However, it wont recognize the second variable (user input Answer) due... (6 Replies)
Discussion started by: seekryts15
6 Replies
10. Shell Programming and Scripting
I need to run a shell script on unix machine from windows 7.
I used the "RSH" command in win XP successfully for this, But on win 7 it is not working.
Can any body tell me how to run RSH on win 7 or any other command for similar use.
I use the command as below
rsh <unix m/c> -l <username>... (1 Reply)
Discussion started by: arup1980
1 Replies
LEARN ABOUT DEBIAN
iob_new
iob_new(3) Library Functions Manual iob_new(3)
NAME
iob_new - create new I/O batch
SYNTAX
#include <iob.h>
io_batch* iob_new(int hint_entries);
DESCRIPTION
iob_new creates a new I/O batch with enough space allocated for hint_entries entries (buffers or files). This is purely a performance
hint, if you are unsure just pass 1.
You can add buffers, strings and files to an I/O batch and then send it all at once using iob_send.
The benefit of the I/O batch API is that it exploits platform specific APIs like FreeBSD's sendfile. The file contents will always be sent
in a way that allows the operating systems to perform zero copy TCP, and the buffers will always be sent using as few syscalls as possible
and avoiding unnecessary copying (using writev).
RETURN VALUE
iob_new returns a pointer to an I/O batch data structure. If there was a memory allocation error, it returns NULL instead.
SEE ALSO
iob_reset(3), iob_send(3), iob_addbuf(3), iob_adds_free(3), iob_addfile(3)
iob_new(3)