Search Results

Search: Posts Made By: mrskittles99
1,390
Posted By mrskittles99
What do you mean? Put those lines after "do" ? ...
What do you mean? Put those lines after "do" ?

I tried that and I get these errors:


test.ksh[37]: temp: not found
test.ksh[38]: ${!temp}: bad substitution
1,390
Posted By mrskittles99
How to loop through array who's name is entered in command line?
Say I have a ksh program called test.ksh which has several defined arrays inside it such as array1,array2,array3...These arrays contain strings.


I also have a method in the program:

for x...
2,071
Posted By mrskittles99
the sed works, but when I try to store the result...
the sed works, but when I try to store the result ofthe sed command into a new txt file, it stores only part of it, and when i open this txt file in vi, whatever amount is stored is shown, and at the...
2,071
Posted By mrskittles99
Grabbing a chunk of text from a file
Hi,
I have a Report.txt file. Say the contents of this file are :

1 2 3 4 5 7 df v g gf

e r dfkf lsdk dslsdklsdk
Report Start: xxxxxxdad
asdffsdfsdfsdfasfasdffasdf
sadfasdfsadffsfsdf...
7,859
Posted By mrskittles99
thanks
thanks
7,859
Posted By mrskittles99
Running a script on multiple remote hosts at once
I have a script on about 15 hosts that I need to run for each host whenever I want (not crontab). Problem is, this script takes 5-10 mins to run for each host. Is there a way I can run the script in...
1,741
Posted By mrskittles99
How to display a message if program hangs(takes too long)
I have a ksh script (script1) that calls another ksh script (script2). If script2.ksh hangs or takes too long to execute I want script1.ksh to kill the call to script2.ksh and instead just display...
37,726
Posted By mrskittles99
I did it with remsh, thanks for the help though.
I did it with remsh, thanks for the help though.
37,726
Posted By mrskittles99
I'm not supposed to be running the script that...
I'm not supposed to be running the script that often, is there a different way to do this? I also have remsh on the host. can remsh run scripts?
37,726
Posted By mrskittles99
telnet is running, i just tried the following...
telnet is running, i just tried the following telnet script on it, it worked but there is code in my ksh script after the telnet commands, and that code doesn't execute, as if the script is unable to...
37,726
Posted By mrskittles99
How to run a shell script on a remote host using ftp
Hi,
is there a way I can run a shell script through ftp on a remote host? The remote host doesn't have ssh running so I can't use ssh.
4,470
Posted By mrskittles99
thanks a lot, this worked.
thanks a lot, this worked.
4,470
Posted By mrskittles99
rcp not working?
I'm trying to copy a file from a remote unix box, host1, to my unix box, host2. The first line of code gets the last word from a text document (this is the name of the file I need from host1)

...
1,581
Posted By mrskittles99
How to use rcp to get last file in directory?
If I want to use rcp to get a file from a different host, but I don't know the exact name of the file, I just know it's format, and that it must be the latest file. I need to do this in a ksh...
19,408
Posted By mrskittles99
I am using the sh/tail method, this is my code,...
I am using the sh/tail method, this is my code, but there is an error:


#!/usr/bin/ksh
ftp -n hostx <<EOF>> Report.txt
user user password
ls /tmp/ReportFile.*

EOF
$(tail -1 Report.txt) |...
19,408
Posted By mrskittles99
How do I get the last word of last line in a file
Say the file is something like:

word1/word2/word3
word4/word5/word6
word7/word8/word9


How would I extract word9?
6,003
Posted By mrskittles99
thank you, sorry if the question was stupid, im...
thank you, sorry if the question was stupid, im very new to this..

---------- Post updated at 11:36 AM ---------- Previous update was at 11:28 AM ----------



Also, could you tell me how I...
6,003
Posted By mrskittles99
How to store results of ls in ftp?
Hi,
I want to store the results of running ls in a directory on a remote host using ftp.

For example,


#!/usr/bin/ksh

ftp -n hostx <<EOF
user username password

ls...
Showing results 1 to 18 of 18

 
All times are GMT -4. The time now is 06:00 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy