Help for this page

Select Code to Download


  1. or download this
         Example 3: Executing command with user bin's Environment and
         Permissions
    ...
         missions of user bin, type:
    
         example% su - bin -c "command args"
    
  2. or download this
    su - myuser -c "/home/myuser/t1.pl"
    
  3. or download this
    #!/usr/bin/perl -w
    use strict;
    ...
    print OUT "user $ENV{'USER'}\n";
    close(OUT) or die;
    exit;