Am Mittwoch, 27. Oktober 2004 20:49 schrieb Liam Marshall:
> I believe the problem I am having Pushing Items to Desktops is related
> to the fact that the majority of my users home directories are NOT
> directly off of the Home directory.  Instead they are off of branches in
> the home directory
>
> ie:  /home/com30s/user1, /home/com30s/user2, etc
> ie:  /home/saps/user1, /home/saps/user2, etc
>
> I tried pushing icons to them and they only appear if their home
> directory is off of Home directly.  How could I push them to these other
> branches, if possible.  That would be much appreaciated.  Typing in long
> urls in 30 copies of the browser is not so hard for junior or senior
> high students but takes a prohibitavely long time for elementary
> grades.  An icon pointing to the site would be best, and pushing said
> icon to every desktop would be the best way of doing that
>
> Please Please help

I probably somehow missed an introduction on how you intended this "icon 
pushing" to work, but for retrieving the home directory of a used, the 
following expression might be helpful (assuming there's only one occurence of 
"/home/" per line in /etc/passwd)

grep "^anselm\:" /etc/passwd | sed "s/.*\(\/home\/[^:]*\).*/\1/"

finds user "anselm" in the passwd database and prints the homedirectory to 
stdout. This might be used to use a copy command for a certain username, as 
in

cp example.txt `grep "^anselm\:" /etc/passwd | sed 
"s/.*\(\/home\/[^:]*\).*/\1/"`/Documents/example.txt

(notice the backticks ` ` around above expression).

Hth

Anselm


-------------------------------------------------------
This Newsletter Sponsored by: Macrovision 
For reliable Linux application installations, use the industry's leading
setup authoring tool, InstallShield X. Learn more and evaluate 
today. http://clk.atdmt.com/MSI/go/ins0030000001msi/direct/01/
_____________________________________________________________________
Ltsp-discuss mailing list.   To un-subscribe, or change prefs, goto:
      https://lists.sourceforge.net/lists/listinfo/ltsp-discuss
For additional LTSP help,   try #ltsp channel on irc.freenode.net

Reply via email to