Search Results

Search: Posts Made By: handsonzhao
2,609
Posted By handsonzhao
foreach loop problem
Dear all,

I wrote a script to download files and move files in directories according to their name.

Now here is the problem:

Both p101 and p360 data download successfully, but when I move...
1,466
Posted By handsonzhao
put file in different directory according to the filename
Dear all,

I would like to know how to move the downloaded files in differenent directories according to the name of the file?

i.e.

P10120111201_122013M.jpg
P10120120101_122013M.jpg...
4,763
Posted By handsonzhao
There is no error in crontab, but when I run the...
There is no error in crontab, but when I run the cronjob, it still can not download the file.
4,763
Posted By handsonzhao
Still not work......
Still not work......
4,763
Posted By handsonzhao
This one? MAILTO=handsonzhao@gmail.com 0 0...
This one?

MAILTO=handsonzhao@gmail.com
0 0 * * * /data/gipsy/bin/chen/call_wget.sh # JOB_ID_2
0 0 * * * /data/gipsy/bin/chen/download_snotel # JOB_ID_5
* * * * /bin/csh -x...
4,763
Posted By handsonzhao
Yes, cat tmpfile works, but cronjob still doesn't...
Yes, cat tmpfile works, but cronjob still doesn't work......
4,763
Posted By handsonzhao
Yes, I have tried. h4:~>cat tmpfile |...
Yes, I have tried.

h4:~>cat tmpfile | crontab -
"-":4: bad day-of-week
errors in crontab file, can't install.

What is the problem?
4,763
Posted By handsonzhao
But it also doesn't work..........
But it also doesn't work..........
4,763
Posted By handsonzhao
Yes, I treid both of these but failed, after I...
Yes, I treid both of these but failed, after I changed it in gedit, I found it doesn't changed in crontab -e. Could you tell me why?

Thanks
4,763
Posted By handsonzhao
vi, I am not familiar with it, how can I edit by...
vi, I am not familiar with it, how can I edit by gedit or other editor?
4,763
Posted By handsonzhao
When I input as you told me, it asked: 'Do you...
When I input as you told me, it asked: 'Do you want to retry the same edit? ' And I said: no, then it said: 'crontab: edits left in /tmp/crontab.XXXXF72RjH'

But when I reopen the crontab by...
4,763
Posted By handsonzhao
How to save the edit and quit when I finished? ...
How to save the edit and quit when I finished?

Thanks
4,763
Posted By handsonzhao
Thanks, where is the crontab file?
Thanks, where is the crontab file?
4,763
Posted By handsonzhao
Could you please kindly tell me what should I put...
Could you please kindly tell me what should I put '. ~/.profile ' and 'set -x' in the script? Could you just give me the full edition of the correct script? I am sorry I am new here, thank you very...
4,763
Posted By handsonzhao
Details about the problem
Thanks,

The problem is when I run this script in cronjob, it can not download the files from the website while it can when I run it in terminal.

Thanks again!

---------- Post updated at...
4,763
Posted By handsonzhao
Question about cronjob
Dear all,

I wrote a script and set it as a cron job to automatically download the data from the website.

Here is the problem, when I run this script in terminal, it works well, while it can not...
1,283
Posted By handsonzhao
Thanks, it works when searching for 416, but it...
Thanks, it works when searching for 416, but it fails when searching for 'ab33' for example.
1,283
Posted By handsonzhao
Thanks! Another quesiton
Thanks for you response.

I have another question about it, that is ,when I get the number(416), how can I print out the number in the 3rd column of this row(928)?

Thanks!

---------- Post...
1,283
Posted By handsonzhao
finding number in exact column
Dear all,

I want to find a number in exact column but I don't know how to do it.

Here is the thing, data is shown below, and I want to find 416 in the first column and print it out, how should...
1,104
Posted By handsonzhao
Need Help!!! For changing the content of the line
I need to change the content of the line after I grep it.

The line is :

Date SNWD.I-1 (in) WTEQ.I-1 (in) PREC.I-1 (in) TOBS.I-1 (degC) TMAX.D-1 (degC) TMIN.D-1 (degC) TAVG.D-1 (degC)
...
Showing results 1 to 20 of 20

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