Search Results

Search: Posts Made By: sexyTrojan
8,769
Posted By sexyTrojan
hey all, thanks again for all your replies...
hey all,

thanks again for all your replies but it seems that it doesn't work on remote server. I've tried it locally and it works just fine..



for server in serverA serverB serverC ; do
...
8,769
Posted By sexyTrojan
Running for loop on remote server
Hi,

I'm having a problem performing for loop on remote server, i know this can be done with one liner but i'm not sure how it works if using logical operator such as for ifs and case or while

...
3,161
Posted By sexyTrojan
OMG that was stupid of mee....Thanks a lot guys...
OMG that was stupid of mee....Thanks a lot guys it's working now!!
3,161
Posted By sexyTrojan
Hey Guys, thanks for the fast replies, even...
Hey Guys,

thanks for the fast replies, even though i used double quotes it still doesn't wor and my input doesn't have any white spaces

here is the code suggested

#!/bin/sh

while :
do...
3,161
Posted By sexyTrojan
Hey, Thanks for replying but I've tried...
Hey,

Thanks for replying but I've tried using the back tick and i didn't give a space when assigning variable but instead i'm getting this error

./testVar: line 7: jey: command not found

the...
3,161
Posted By sexyTrojan
Missing Assigned Variable within logic operator
Hey ,

I'm trying to perform the following command, however it cannot read the variable assigned earlier. I'm not sure why this happen. Please help thanks


while :
do
echo "what's ur name?...
6,071
Posted By sexyTrojan
Either loops work, the problem is ssh-ing to the...
Either loops work, the problem is ssh-ing to the servers itself. I can ssh serverB on the command line without being prompted for a password. However when i use the script to do it, i'm being...
6,071
Posted By sexyTrojan
I'm using bourne/bash shell, yup it works for me...
I'm using bourne/bash shell, yup it works for me though. I think you need to do this


array=(1 2 3 4 5)

for I in ${array[@]}; do
echo $I
done


Btw i found out that if i use -1 (which...
6,071
Posted By sexyTrojan
HI thanks for the help, yes I want to back up the...
HI thanks for the help, yes I want to back up the files on 5 different remote servers according to the result of "ls /myDoc/" in local machine, the 5 servers which mirrors to each other and copy the...
6,071
Posted By sexyTrojan
Thanks for your reply, no errors is generated...
Thanks for your reply, no errors is generated because the error is thrown into dev/null and when I tried inserting pwd within the loop, it's saying that i'm still in my local machine and Yes myDoc is...
6,071
Posted By sexyTrojan
Copy a file on remote servers
Hey Unix Gurus,

I'm having trouble in copying a file on 5 different servers, first how can you do it locally (i.e without the need to ssh to the server you want to copy the file) and if you need...
8,295
Posted By sexyTrojan
Thanks a lot once again, i guess there is no need...
Thanks a lot once again, i guess there is no need to compare string because it will just do a backup regardless and if the file doesn't exist on the server B etc, it will just throw the error into...
8,295
Posted By sexyTrojan
Thanks a lot guys for helping. But first, I want...
Thanks a lot guys for helping. But first, I want to check if the files in server A also exist in server B,C,D etc, I want to back up the files first in those servers before scp ing over. I can do...
8,295
Posted By sexyTrojan
Connecting to multiple unix server from unix server using shell script
Hi Gurus,

I'm a unix newbie and I would like to connect to multiple unix servers from unix server using shell script i.e from server a to server b,c,d etc. I want to copy the files from unix...
2,873
Posted By sexyTrojan
copy files to different servers
Please Help!
I have data containing wav, txt and different type of files on server A and i'm trying to write a script to copy these files in server B, C and D but each type of files goes to...
1,966
Posted By sexyTrojan
Help in Array looping and creating multiple lines
hi Gurus,

I'm a newbie in scripting please check my script if this is correct. I think there's something wrong with it but I;m not sure. I'm trying to create multiple lines using awk from...
2,021
Posted By sexyTrojan
awk pattern replacement
Hi I'm a newbie in unix and I'm having trouble in creating a script. I want to search for a pattern '_good' and insert new lines that contains '_bad', '_med', '_fail' while also ensure that the line...
1,781
Posted By sexyTrojan
Replacing word and Incrementing
Hi I'm having difficulty in writing a script with searching a specified word using sed and replaces that word with numbers that is incremented

I tried this:

#!/bin/sh

awk '{ for (i=2010;...
2,320
Posted By sexyTrojan
Thank you for the fast reply that's the most...
Thank you for the fast reply that's the most efficient solution, thank you so much :b:
2,320
Posted By sexyTrojan
For loop
Hi I'm new to UNIX script and I need to create a script to add an increment on the first filed using for loop but it dosen't work and I wan to add ' ' on each value in the bracket...
Showing results 1 to 20 of 20

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