TCLUG Archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

telinit and such



Even if 'telinit' is a link to 'init', they might still have different
functionality. When writing a program, you can test to see how the program
was invoked, and do different things based on that. Here's some
pseudo-code:

if (argv[0] is 'telinit')
{
  do foo things;
)

vs:

if (argv[0] is 'init')
{
  do bar things;
}

Just tryna help out. Have a good one.


-- Chris

  Christopher Reid Palmer : www.innerfireworks.com