10 More Discussions You Might Find Interesting
1. Shell Programming and Scripting
Hi Folks,
I need help in creating a ksh script to copy a folder from one server to multiple other servers using ssh and sftp.
The thing is the folder name changes daily. So is there a way we could specify the folder name during the execution of script.?
I would appreciate a quicker help.... (3 Replies)
Discussion started by: lena07
3 Replies
2. Shell Programming and Scripting
Hi, I am new to UNIX. I am working on a script where it takes the input and produces a desired output and it works fine for one instance.
Input(One Instance):
CREATE TABLE TAB1
(
COL1,
COL2
);
CREATE UNIQUE INDEX XPKTAB1
(
COL1
)TAB1;
Output:
CREATE TABLE TAB1
(
COL1,
COL2... (8 Replies)
Discussion started by: varun2327
8 Replies
3. UNIX for Dummies Questions & Answers
I need a UNIX ksh script that counts the number of files in directory, if the files exceed 20 files, then email results. I want the script to run every hour.. I don't have access to cron.. I'm some what new to UNIX. Windows guy all my career.. this is what I have so far..
#!/bin/ksh
# count.sh
... (5 Replies)
Discussion started by: PerlHaven2k
5 Replies
4. Shell Programming and Scripting
Hi,
I'm trying to write a for loop to run through a list of servers and for each server copy a file to a backup file. But I can't seem to get it to run through my server list. It work for individual servers, please see below.
#!/bin/ksh
SSH_USERID=khcuser
webservers="server1 server2"
... (2 Replies)
Discussion started by: elmesy
2 Replies
5. Shell Programming and Scripting
#!/bin/ksh
log=ABCl
log=EFG
log=HIJ
i=0
while <------ what is the meaning of ($i - lt 3)
do
print ${log}
(( i=i+1 ))
done (1 Reply)
Discussion started by: Bperl1967
1 Replies
6. Shell Programming and Scripting
Hello Everyone,
I'm still trying to grasp many concepts in .ksh scripting, one of them being variables inside loops. My problem is the following:
* I'm trying to set a variable inside a while read loop to reuse it outside of said loop. My lines are the following :... (13 Replies)
Discussion started by: jimmy75_13
13 Replies
7. Shell Programming and Scripting
Guys,
I am new in awk , I face problem while i try to use for loop in awk,
I am using ksh, i am trying to set a for loop which runs as man times as the records in a file , the for loop like for(a=1;a<=5;a++) is working in my awk script but the one i need is not working :wall:
for example
... (8 Replies)
Discussion started by: djahmed
8 Replies
8. Shell Programming and Scripting
Hi,
I have written a shell script which monitors my application and generates a report. The out put of the same looks like this.
PID USER PR NI VIRT RES SHR S %CPU %MEM TIME+ COMMAND
30700 xmp 15 0 2986m 2.9g 1488 S 0.0 18.3 66:00.93 cee
This report is generated... (8 Replies)
Discussion started by: Siddheshk
8 Replies
9. Shell Programming and Scripting
Hello, more of a windows wscript guy. However I took a new position that requires me to support some solaris servers. So... issue is that I need to copy all lines from a file to a temporary file and then copy them back into the original file starting at line 1. Reason I need to do this is... (5 Replies)
Discussion started by: ZigZaggin
5 Replies
10. Shell Programming and Scripting
Hi All,
I need to convert the data from excel to database table in sybase. Please provide some sample script..
thanks,
Royal. (1 Reply)
Discussion started by: royal9482
1 Replies