Search Results

Search: Posts Made By: libertyforall
1,613
Posted By libertyforall
if no file then quit
I have a script that run several subscripts. I need to find out how to do two things. First I would like to check for a file and if that file is not there I want to quit the entire script without...
2,543
Posted By libertyforall
Does anyone have any ideas? I need at least the...
Does anyone have any ideas? I need at least the command to search a document and then a command to print text.
2,543
Posted By libertyforall
Perl Script to find & copy words from Web.
I need to write a perl script to search for a specific set of numbers that occur after a series of words but before another. Specifically, I need to locate the phrase today at the summit, then...
81,437
Posted By libertyforall
Figure it out
Ok. It worked. I simply made a mistake with my directory address in the script. Both options worked. Thanks.
81,437
Posted By libertyforall
overwriting existing files with scp.
Ok. I am using one cluster to remotely write into another cluster. I can scp to copy files from cluste1 to cluster2, however, I need to copy a file that already exists in cluster 2 and replace it...
13,311
Posted By libertyforall
Rerun a cronjob if it doesn't work at first.
I want to add a line to the script that searches for a file. If the file does not exist, I need to kill the cronjob and run it again in one hour. I am running the program and 2 am and 2pm. I would...
2,828
Posted By libertyforall
I am running on a Linux Box. [rhuff@huina...
I am running on a Linux Box.

[rhuff@huina working]$ echo $SHELL
/bin/csh

---------- Post updated at 12:01 PM ---------- Previous update was at 11:56 AM ----------

My script worked for the...
2,828
Posted By libertyforall
Ok. How exactly would I do that? I am using a C...
Ok. How exactly would I do that? I am using a C shell. Is there a way to read tomorrows date or have it print on the screen with perhaps the cal function? I could possibly use the cut command print...
2,828
Posted By libertyforall
Code creates day 32 instead of 1st day of next month.
I am using the code below modified from a post I saw here regarding having the script write out future dates. The problem is that instead of making 8/1 it makes 7/32! Please help!




yy=`date...
9
2,943
Posted By libertyforall
editor change.
That does not work. I tried that and I get the message below:

[rhuff@huina working]$ export EDITOR=emacs
export: Command not found.
9
2,943
Posted By libertyforall
Configuration file.
OK. I see this now. If I type it directly into the command line, how would I specify the dates?

Also, when I tried to edit the configuration file it looks likes its in vi which I have difficulty...
9
2,943
Posted By libertyforall
OK. I tried it and it still didn't work. This is...
OK. I tried it and it still didn't work. This is what I did below. As you can see, I dropped the sh and it still looks like its reading the minutes as a command. I then used the echo and quotes but...
9
2,943
Posted By libertyforall
cron
I have been trying to run a chron command without success. I want to run a program twice daily. First, can I type in the code directly into the command line or do I need to write a shell script and...
1,972
Posted By libertyforall
UTC yesterday & Today.
THis is not really applicable to me. I have been trying to figure out what is going on with my program. It turns out the program is using UTC which I knew. The problem is that the initialization...
1,972
Posted By libertyforall
Future dates.
If I have a script that writes the name of the file based on today, tomorrow, and the day after tomorrow. How would I modify the line echo "filename.${PDY}${CYC}" >>CONTROL to reflect...
2,261
Posted By libertyforall
How exactly would I write that? Would I eliminate...
How exactly would I write that? Would I eliminate

#yy="2010"
#mm="07"
#dd="12"

and simply write

eval$(date '+yy=%Y mm=%m dd=%d')

Or would I write

#yy=%Y
#mm=%m
#dd=%d

Is...
2,261
Posted By libertyforall
Setting the date.
I am modifying some script and need to have the script reflect the current date. I have the script below. In the section yy="2010",mm="07", dd="12" What would I need to change to have the script...
15,980
Posted By libertyforall
Download Changing linked filenames
There are numerous files that must be downloaded from the site twice daily. The file names change based on date. Looking at the system, I am thinking the the script must also remove the files first...
15,980
Posted By libertyforall
Shell script to automatically download files
I am new to shell scripting and need to write a program to copy files that are posted as links on a specific url. I want all the links copied with the same file name and the one posted on the webpage...
115,974
Posted By libertyforall
I am a newbie. What command do I use with scp?...
I am a newbie. What command do I use with scp? How do I write it? "scp someFile someUser@someServer:/somePath/someFile" ? Is someFile the actual file name? if the file is names Test1 and is on...
115,974
Posted By libertyforall
Uploading files from Mac to Unix/Linux via ssh
Ok. I am using the Terminal window to ssh into a unix server. I am not sure how to copy a file from my mac onto the unix server. What command do I enter and how do I type the file I want to upload
...
Showing results 1 to 21 of 21

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