Search Results

Search: Posts Made By: mrudula009
2,264
Posted By mrudula009
THis is my file named mycron which I add it to...
THis is my file named mycron which I add it to the crontab entry later to run every 5 mins and this works. But I havnt done the last part - to run another script if everything succeeds.

Thanks...
2,264
Posted By mrudula009
Take action if a particular file appears in a directory
This is my task - pls help

Write a script that will run every 5 min and check if a particular file has appeared in a particular directory. Once it appears then rename the file and move it a bkp...
42,519
Posted By mrudula009
Thanks Panyam ... thats much more flexible !
Thanks Panyam ... thats much more flexible !
42,519
Posted By mrudula009
Thanks for the reply dinjo ... but what if...
Thanks for the reply dinjo ...

but what if the path is read from the terminal... ie, $path can be anything - like, /home/myfile.txt
/home/bliss/myfile.txt
/home/one/two/myfile.txt...
42,519
Posted By mrudula009
Extract directory from a file path
Im trying to extract a directory from a path entered by the user

Lets say the path is
path=/home/bliss/files/myfile.txt

i wanna extract "/home/bliss/files" from $path ... how can i do this?
47,385
Posted By mrudula009
I use Fedora -----Post Update----- Hey...
I use Fedora

-----Post Update-----

Hey guys ... its working ... thank u :)
47,385
Posted By mrudula009
I created a file called mycron in /home/mrudula...
I created a file called mycron in /home/mrudula with the following :
0, 5, 10, 15 * * * * (echo "Hello mycron") > /dev/console

then I tried to add this file to the crontab entries by the follwing...
47,385
Posted By mrudula009
I just tried a simple thing - to display time on...
I just tried a simple thing - to display time on the terminal every 5 minutes .. this is my crontab entry for it - but it doesnt seem to work ... y is that?

pwd
/usr/lib

contab -e
no crontab...
47,385
Posted By mrudula009
Thanks for the wonderful explanation Rob !! Now...
Thanks for the wonderful explanation Rob !! Now lemme try to work it out ...
47,385
Posted By mrudula009
Script to run every 5 minutes
Hello all,

I want to run a script every 5 minutes. How to accomplish this task?


Thanks in advance
Mrudula
24,353
Posted By mrudula009
No it doesnt work :( :( Thats almost the...
No it doesnt work :( :(

Thats almost the same code i have ...
24,353
Posted By mrudula009
Alberto, I had my .bash_profile in /home ... now...
Alberto, I had my .bash_profile in /home ... now ive moved it to /home/mrudula ... i logged out and logged in again.

To open a new terminal, i just click on the shortcut to the terminal on the...
24,353
Posted By mrudula009
When i start a new terminal do i have to be in...
When i start a new terminal do i have to be in /home for the msg to be displayed? Im now in /home/mrudula when i start a new terminal ... if thats reqd, how do i change this?
24,353
Posted By mrudula009
Hey thanks!! That works - source .bash_profile...
Hey thanks!! That works - source .bash_profile prints my msg !! Can u pls tell me something more on 'source'

But i just tried to open another terminal - but the msg is not displayed .. but when i...
24,353
Posted By mrudula009
Thanks Dev. It displayed /bin/bash which means im...
Thanks Dev. It displayed /bin/bash which means im using the bash ... But y isnt the msg displayed from .bash_profile? Help needed !!
24,353
Posted By mrudula009
Thanks for your response Dev. First - how do...
Thanks for your response Dev.

First - how do i know which shell i am using?

I renamed the file .profile to .bash_profile. I logged in again but still its not displayed.
24,353
Posted By mrudula009
Thanks to all. Im still not getting the msg. ...
Thanks to all. Im still not getting the msg.

I use fedora - boots fedora - it asks for password when i click on my login account - after typing the password it comes to the desktop - then i open...
24,353
Posted By mrudula009
Thanks Amit. I changed the profile name to...
Thanks Amit. I changed the profile name to .profile as u said. Now I have /home/.profile

But I logged in again and opened the terminal but it doesnt display the msg i have in .profile. What must b...
24,353
Posted By mrudula009
I am just a beginner in shell scripting so please...
I am just a beginner in shell scripting so please forgive me for my mistakes.

Yes, that's the profile name i gave welcome.profile in the dir /home

Code:

echo Welcome to Fedora !!
echo Today...
24,353
Posted By mrudula009
I have created welcome.profile in /home and it...
I have created welcome.profile in /home and it does have the reqd permissions to read ... i tried to log in again but still it doesnt show my msg :( ... y is that
24,353
Posted By mrudula009
Thanks for your response Amit. I created the...
Thanks for your response Amit.

I created the .profile file. But without me executing the file, I want it to display the file contents. Can u pls tell me how I can achieve this? Is there any boot...
24,353
Posted By mrudula009
How to display message when starting a terminal
Hello all,

I would like a message to be displayed on the shell when someone opens up the terminal - something like a welcome msg with date and time. I know how to do this by running the shell...
Showing results 1 to 22 of 22

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