likedoinit
Technical User
ok, i'm new at Solaris 8. I'm taking a class at ECPI right now. I have asked my instructor a question that he has never come across, and no one else has either.
What I want to do is when boot up into the cde, I want a console window to pop up and execute some form of command. IE: when the console window pops up it then executes the date command. It was just supposed to be something easy, but when the console window pops up, its now a different shell and the commands I want to be executed don't execute until i close the console window.
If i open up a term window and type dtterm -C I can get the console window to come up. How do i get that window now to execute the date command or any other command? They don't want to follow over to the new window. I thought i could redirect it but that doesn't seem to work. I was typing dtterm -C > date .
What brought this idea up was my instructor had said he made a script that will go and check if his back up ran successfully, and all the tmp files were deleted after backup. He has to type that scripts name to run it, and i was like how come you can make it run in a console window evertime you log in in the morning?
So i was trying to make a script that did that, and i was going to put it in the .profile or the .dtprofile so everytime he or whoever logs in, that console window will pop up and run those commands without me having to type them.
Any help would be really appreciated.
thanks
What I want to do is when boot up into the cde, I want a console window to pop up and execute some form of command. IE: when the console window pops up it then executes the date command. It was just supposed to be something easy, but when the console window pops up, its now a different shell and the commands I want to be executed don't execute until i close the console window.
If i open up a term window and type dtterm -C I can get the console window to come up. How do i get that window now to execute the date command or any other command? They don't want to follow over to the new window. I thought i could redirect it but that doesn't seem to work. I was typing dtterm -C > date .
What brought this idea up was my instructor had said he made a script that will go and check if his back up ran successfully, and all the tmp files were deleted after backup. He has to type that scripts name to run it, and i was like how come you can make it run in a console window evertime you log in in the morning?
So i was trying to make a script that did that, and i was going to put it in the .profile or the .dtprofile so everytime he or whoever logs in, that console window will pop up and run those commands without me having to type them.
Any help would be really appreciated.
thanks