Re: grub.conf

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Luciano Rocha wrote:
Is the program graphical? If not, then a line with:

su - -s /bin/sh user -c "program" < /dev/null &> /var/log/program.log &

in /etc/rc.local will take care of it.

What is the role played by /dev/null here? I tried the command with /dev/null and without. The behavior was the same.

[root@marvin ~]# su - veejay -s /bin/sh -c "tar cvf /home/veejay/test.tar /home/veejay/test" < /dev/null &> /home/veejay/test.log &

[root@marvin ~]# ll /home/veejay/test.*
-rw-r--r-- 1 root   root     46767 2007-07-11 21:34 /home/veejay/test.log
-rw-r--r-- 1 veejay users 10414080 2007-07-11 21:34 /home/veejay/test.tar

[root@marvin ~]# su - veejay -s /bin/sh -c "tar cvf /home/veejay/test.tar /home/veejay/test" &> /home/veejay/test.log &

[root@marvin ~]# ll /home/veejay/test.* -rw-r--r-- 1 root root 46767 2007-07-11 21:42 /home/veejay/test.log
-rw-r--r-- 1 veejay users 10414080 2007-07-11 21:42 /home/veejay/test.tar



--
Regards,
विवेक ज. पाटणकर (Vivek J. Patankar)

Registered Linux User #374218
Fedora release 7 (Moonshine)
Linux 2.6.21-1.3228.fc7 x86_64

--
fedora-list mailing list
fedora-list@xxxxxxxxxx
To unsubscribe: https://www.redhat.com/mailman/listinfo/fedora-list
[Index of Archives]     [Older Fedora Users]     [Fedora Announce]     [Fedora Package Announce]     [EPEL Announce]     [Fedora Magazine]     [Fedora News]     [Fedora Summer Coding]     [Fedora Laptop]     [Fedora Cloud]     [Fedora Advisory Board]     [Fedora Education]     [Fedora Security]     [Fedora Scitech]     [Fedora Robotics]     [Fedora Maintainers]     [Fedora Infrastructure]     [Fedora Websites]     [Anaconda Devel]     [Fedora Devel Java]     [Fedora Legacy]     [Fedora Desktop]     [Fedora Fonts]     [ATA RAID]     [Fedora Marketing]     [Fedora Management Tools]     [Fedora Mentors]     [SSH]     [Fedora Package Review]     [Fedora R Devel]     [Fedora PHP Devel]     [Kickstart]     [Fedora Music]     [Fedora Packaging]     [Centos]     [Fedora SELinux]     [Fedora Legal]     [Fedora Kernel]     [Fedora OCaml]     [Coolkey]     [Virtualization Tools]     [ET Management Tools]     [Yum Users]     [Tux]     [Yosemite News]     [Gnome Users]     [KDE Users]     [Fedora Art]     [Fedora Docs]     [Asterisk PBX]     [Fedora Sparc]     [Fedora Universal Network Connector]     [Libvirt Users]     [Fedora ARM]

  Powered by Linux