I have a similar situation. I've settled on storing my channels in a channels.txt file and my mirrors in a mirrors.txt file. Then once you have that<br>you can just have a 5 line shell script that sets the proxies (http and ftp) and sucks in the 
channels.txt and mirrors.txt files.<br><br><b>Creating the files</b><br><br><blockquote style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;" class="gmail_quote">smart channel --show > 
channels.txt<br>smart mirror --show > mirrors.txt<br></blockquote><br><b>The shell script</b><br><br><blockquote style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;" class="gmail_quote">
#!/bin/bash</blockquote><blockquote style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;" class="gmail_quote"><div>smart config --set http-proxy=<a href="http://username:password@proxy-ip/" class="external" rel="nofollow">
http://username:password@proxy-ip:port</a><br>smart config --set ftp-proxy=<a href="http://username:password@proxy-ip/" class="external" rel="nofollow">http://username:password@proxy-ip:port</a></div></blockquote><blockquote style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;" class="gmail_quote">
<div>smart channel --add channels.txt</div></blockquote><blockquote style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;" class="gmail_quote"><div>smart mirror --add mirrors.txt 
<br></div></blockquote><div> </div>This is a simple version of our solution. We actually have a role based solution and the script checks a system variable for the ROLE and then sets up proxies and repositories accordingly. We also have boxes that move in and out of the network so the proxy code is automatic now. When you boot up it checks to see if it can ping the proxy and if not it turns the proxies off (for wget, smartpm, firefox and links). If the proxy machine can be pinged then it turns the proxies on.
<br><br>Grant<br><br><div class="gmail_quote">On Nov 28, 2007 11:02 PM, Rainer M Krug <<a href="mailto:rainer.linux@krugs.de">rainer.linux@krugs.de</a>> wrote:<br><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
Hi<br><br>I am working at two different offices in which I have to use different<br>proxy settings and different repositories.<br>Up to now, I just changed the proxy settinges in the config file with a<br>batch file and started smart as usual, but this does not work for the
<br>different repositories. I thought that I could use differfent config<br>files and then by using the --config-file option select the appropriate<br>config file. But I guess, that the repository addresses are not stored
<br>in the config file - what is the best way of handling this situation?<br>Define all repositories and then just enabling the ones relevant to the<br>sit I am at (and would that be stored in the config file?)? Or do I have
<br>to use different config directories? The repositories are the same -<br>they are just different mirrors. Could I use the mirror optionthen?<br><br>Any ideas welcome,<br><font color="#888888"><br>Rainer<br></font></blockquote>
</div><br><br clear="all"><br>-- <br>Some people, when confronted with a problem, think "I know, I'll use Windows." <br>Now they have two problems.