![]() |
Hello and Welcome from United States to the UNIX and Linux Forums! Thank You for Visiting and Joining Our Global Community.
|
|
google unix.com
|
|||||||
| Forums | Register | Forum Rules | Links | Albums | FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read |
| Shell Programming and Scripting Post questions about KSH, CSH, SH, BASH, PERL, PHP, SED, AWK and OTHER shell scripts and shell scripting languages here. |
More UNIX and Linux Forum Topics You Might Find Helpful
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| tar -xvf doesnt work | lo-lp-kl | AIX | 2 | 05-19-2008 07:46 PM |
| cp doesnt work - Help | rudi.okelly | UNIX for Dummies Questions & Answers | 26 | 01-04-2007 08:53 AM |
| SSH doesnt exit properly from command line | frustrated1 | SUN Solaris | 4 | 06-16-2005 04:30 PM |
| cd.. doesnt work | rintingtong | UNIX for Dummies Questions & Answers | 2 | 07-29-2004 02:30 PM |
| why doesnt my script work!!! | Heedunk | Shell Programming and Scripting | 7 | 03-01-2004 05:03 AM |
![]() |
|
|
LinkBack | Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
|
|
|||||
|
Yes Matrix... same versions of tar are being used...... Iam really confused how come the same script will work perfectly when we run manually...
Regarding SCP no issues i can do that, thanks for the tip... Can u please dig more and report me thanks again |
|
|||||
|
Thanks vidyadhar ... Out of 200 directoried its is just able to tar 4 directories...it is stopping at folder by name trasaction with transactioid.txn files One more thing is that if i manually untar the 38 Mb back up i am getting an error
-rw-r--r-- www-data/root 61434 2009-01-29 19:07 repos/subversion/flightops/db/revs/2021 tar: Unexpected EOF in archive tar: Unexpected EOF in archive tar: Error is not recoverable: exiting now this will not come while untaring the 2.8GB tar file. It untars it without any issues... Thanks.. |
|
||||
|
For one thing, I would not use the `. /path/to/script` syntax. Put a first line in the script that says "#!/bin/ksh" or "#!/bin/bash" or whatever shell you use in your user environment. Then use `/path/to/script` as the syntax. That will at least ensure that your shell is the same in both user environment and cron.
You want to be looking for what might be different in the two environments. For the moment, I assume we can ignore the scp, since you are not even getting the full tar file. Maybe comment out the scp and see what happens from cron. Maybe add a line right after the tar line that does `echo "return code $?";`. You don't get any output email from cron? (What it would do if an error message or other output was generated). |
![]() |
| Bookmarks |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|