Search Results

Search: Posts Made By: Basherrr
11,264
Posted By Basherrr
Thanks, Alister! That really clears some...
Thanks, Alister!

That really clears some things up! Thanks for taking your time to write that response up. I found it very helpful and I am pretty sure other people will also find it helpful as...
11,264
Posted By Basherrr
Is there a way to source this script and have the...
Is there a way to source this script and have the trap that I set up work as intended. I am trying to export variables to script that has a while loop with a sleep command in it. I know I can just...
11,264
Posted By Basherrr
Hello Alister, Thanks for your reply. You...
Hello Alister,

Thanks for your reply. You are correct I am sourcing the script with .

I don't understand why that matters though. I thought when you source a script you are running the...
11,264
Posted By Basherrr
Also Is there a way to tell what commands, like...
Also Is there a way to tell what commands, like sleep, are being ran as a child process? Is there a way to make these commands to be ran in a parent process?
11,264
Posted By Basherrr
Okay, sleep is ran in a child process. That...
Okay, sleep is ran in a child process. That makes sense, but when I press CTRL c for the child process, why does the child process not echo the message to the screen?

trap "echo CTRL c was...
11,264
Posted By Basherrr
Help with trap and signals
I am having issues with trap not working inside a script. I am currently trying this on a Knoppix system V 5.1. What I would like to happen is when I press control c, a message gets echoed and the...
13,918
Posted By Basherrr
How about: FName_No_Extension=c_abc_new ...
How about:

FName_No_Extension=c_abc_new

Mod_File_NAME=$(echo $FName_No_Extension`date +%Y%m%d_%H%M%S%N`.txt)

echo $Mod_File_NAME

Produces the output I think you are looking for....
Showing results 1 to 7 of 7

 
All times are GMT -4. The time now is 06:11 PM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy