![]() |
|
|
google unix.com
|
|||||||
| Forums | Register | Forum Rules | Links | Albums | FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read |
| UNIX for Dummies Questions & Answers If you're not sure where to post a UNIX or Linux question, post it here. All UNIX and Linux newbies welcome !! |
More UNIX and Linux Forum Topics You Might Find Helpful
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| How to stop a script running in remote server from local script | mannepalli | Shell Programming and Scripting | 1 | 03-04-2009 08:18 PM |
| running terminal with script | cdfd123 | Shell Programming and Scripting | 3 | 12-13-2008 03:35 AM |
| Running a Script in a Remote server | ZeroGPX | Shell Programming and Scripting | 2 | 03-07-2008 08:07 PM |
| Running a script without a terminal session | jjinno | Shell Programming and Scripting | 3 | 10-03-2007 02:50 AM |
| running a script on remote server. | whited05 | Shell Programming and Scripting | 1 | 10-20-2005 06:07 AM |
|
|
LinkBack | Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
||||
|
Problems running script on remote Terminal
Hi, I'm new here so please excuse any stupidity that occurs in my post :P My situation: Have a java program which I have to run a ridiculous amount of times and put the output data into a text file. Thought the easiest way to do this would be to delve into the world of scripts. I am at home (on a mac) with remote access to my university computers (linux). Wrote a script which I think might possibly work: Code:
i=50
while [ $i <= 1000]
do
java RMIClient telford-00 1090 $i > "$i.txt"
count='expr $i + 10'
done
I uploaded it into the same directory as the code Followed some instructions on the internet to chmod it using: Code:
chmod +x RMIScript.sh Where RMIScript is the name of the script. Tried to run it using both: Code:
sh ./RMIScript.sh and Code:
./RMIScript.sh however both come out with errors 'cannot open =: No such file' Any advice would be appreciated. Edit: Changed code to: Code:
i=50
while [ $i -lt 1000]
do
java RMIClient telford-00 1090 $i > "$i.txt"
i=$[i + 10]
done
same error. Last edited by lozyness; 4 Weeks Ago at 09:45 AM.. Reason: Change in code |
| Bookmarks |
| Tags |
| remote console, running error |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|