Join the community today
Become a Member

Command not running on script

Discussion in 'System Administration' started by pamamolf, Jul 8, 2014.

  1. pamamolf

    pamamolf Well-Known Member

    4,125
    429
    83
    May 31, 2014
    Ratings:
    +841
    Local Time:
    3:20 AM
    Nginx-1.29.x
    MariaDB 10.6.x
    Hi

    I am testing a script.sh and i can't get this work:

    #!/bin/bash
    # Compress them
    /bin/tar -zcf /home/backup/file.txt

    file /home/backup/file.txt exist and the cron is running as i can check using tailf /var/log/cron

    Why is not running?

    I was try also as
    tar -zcf /home/backup/file.txt

    Thanks

     
  2. eva2000

    eva2000 Administrator Staff Member

    58,893
    12,490
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +19,122
    Local Time:
    10:20 AM
    Nginx 1.31.x
    MariaDB 10.x/11.4+/12.3+
  3. pamamolf

    pamamolf Well-Known Member

    4,125
    429
    83
    May 31, 2014
    Ratings:
    +841
    Local Time:
    3:20 AM
    Nginx-1.29.x
    MariaDB 10.6.x
    ok found it thanks :)