Reputation
325
Top tag
Next privilege 500 Rep.
Access review queues
Badges
1 9
Newest
 Yearling
Impact
~16k people reached

  • 0 posts edited
  • 0 helpful flags
  • 30 votes cast
Aug
24
comment debian bash/sh string execution
That's also my problem... :( As you can see it works if its commented out, so there should be no syntax problem inside the script. But thanks anyway! As I don't have much time this weekend, I will search again next Monday.
Aug
24
revised debian bash/sh string execution
Updated the script
Aug
24
comment debian bash/sh string execution
No there is no space. This is somethign I would have recognized. (I updated my original post to show you what i have done
Aug
24
comment debian bash/sh string execution
Now i get a Syntax error: "(" unexpected (expecting "fi") on your line remote_cmd=(/usr/bin/ssh "$BACKUP_USER@$HOST_TO" "$RENAME_STRING")
Aug
24
comment debian bash/sh string execution
IS working on the command line directly, but not inside a script. remote_cmd="(/usr/bin/ssh $BACKUP_USER@$HOST_TO $RENAME_STRING)" and in the next line "${remote_cmd[@]}" I get a "Bad substitution" Error for the last line... (so eval is still in use...)
Aug
23
revised debian bash/sh string execution
Updated/improved while loop
Aug
23
comment debian bash/sh string execution
@DennisWilliamson you mean especially point 3 ? as i have some trouble executing ssh someuser@somehost < $TEST inside shell script? And <<< as suggested in one answer also doesn't work...
Aug
23
comment debian bash/sh string execution
Thanks for the response, but I understanding the script is not the problem. In fact Security an manageability IS one goal t archive. I know its not one of the best scripts, but thats why I'm here ;) I just thought of to create just one script, which could be easily ported to other/new hosts. Maybe you are right an I should over think the concept. So you mean that I should create script and call it with all necessary variables like $DATASTORE_NAME and $MAX_SNAPSHOTS would also be ok, now as I think of it. Any other suggestion why this would be good/bad?
Aug
23
revised debian bash/sh string execution
Added a line
Aug
23
revised debian bash/sh string execution
Again an update
Aug
23
comment debian bash/sh string execution
@val0x00ff I just updated my Post. How do you mean I should solve it to be "correct"?
Aug
23
revised debian bash/sh string execution
UPDATE and typo corrention
Aug
23
comment debian bash/sh string execution
@val0x00ff Your suggestion didn't work, or did you mean something else? eval actualy worked (like in the answer from dsumsky)
Aug
23
comment debian bash/sh string execution
Thanks! I rely never stumbled upon this problem till now. Thanks again!
Aug
23
revised debian bash/sh string execution
missed out to format something
Aug
23
asked debian bash/sh string execution
Aug
23
comment SSH timeouts between hosts which are connected via multiple routes
@StefanZimmermann Additional: Is there any good reason for this setup? I just cant figure out a way why SSH could not just listen ob both IPs?
Aug
23
comment SSH timeouts between hosts which are connected via multiple routes
@StefanZimmermann could you also provide the routing Information from Host A? I think of something similar as user Dru. After the arp timeout the connection tries or finds another way, and is not longer matching on one side of the connection. So we would neet to figure out WHERE this happens.
Aug
23
comment Linux set routing based on MAC address + failover
pfSense would meet all these requirements (DNS,DHCP,VPN,Proxy(extra package), LDAP Auth). I just could not figure out at home if you could create user based routing FW policy as I don't use any kind of authentication at home :) (sry). But I'd suggest to just give it a try or wait for another (real) answer.
Aug
23
comment How to bridge Network interfaces on Debian/kFreeBSD
Thanks for the answer, but i also would like to know about the ways to configure this, as I don't know exactly there to store those configurations. the openVPN things is interesting, and helpful, but I wanted the OpenVPN subnet to be a switched one as i want to provide 4 OpenVPN configurations on the server tcp and udp on port 80 and 443. As i Mentioned in my question, i'd like something as the /etc/network/interfaces file where I could store and set up all this things at startup.