• This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn more.

script

  1. fullauto2012

    Shell DB backup Script

    Not real good with scripting. But, I through my hat in the ring. I was in dire need of a DB backup script that wrote to an inserted, but mostly unmounted rdx drive, regardless of mount situation. I also needed it to keep sanity in that backups older than 30 days needed to be pruned. Logs needed...
  2. Josh Rea

    Shell Scripting Output to File and Screen

    Hello all, I wrote a script to direct all output to a log file, but I'd like to echo certain things during the process of the script to screen output if I can. I haven't been able to find anything related to this searching online, and the man page for sh is cryptic for me (as of now). Sample of...
  3. igorino

    Other Remove "...[C[0k" from expect output

    Dear all, How can I not generate the substring ...[C[C[C[0k after issued comands trough expect scripts? For example, I have the following lines in an expect script: #set variables, parameters etc ... spawn telnet $IP $PORT expect -nocase "name:" send -- "$USER\r" expect -nocase "password:" send...
  4. Setup Script to run at boot using crontab?

    Hi, So I'm trying to set a script, so it starts on boot. The problem is, I'm using "@reboot" and I don't think that is working. I have: Tried modifying /etc/crontab as root using crontab -e -u syncthing tried various commands, IE: "@restart touch /home/syncthing/test" I have surfed the net...
  5. monchito

    Run Python Script -

    Hi all, i'm brand new on FreeBSD, i want to run a python script for pfsense firewall running on FreeBSD (FreeBSD 10.3-RELEASE-p9) this is the script https://github.com/edgauthier/pfsense-backup I already installed beautifulsoup4 (py27-beautifulsoup-4.4.1) So, when i make this as root ...
  6. Preacher

    Shell 'Garbage' output during script execution (via cron)

    I have this script which checks for updates on my host system and on my jails: #!/usr/local/bin/bash PATH="/sbin:/bin:/usr/sbin:/usr/bin:/usr/games:/usr/local/sbin:/usr/local/bin:/root/bin" # Updaten en rapporteren Ports Tree host system: portsnap cron update && { echo -e "Packages te...
  7. IP

    To write a script, which checks the availability of computers in the network (the range of addresses in the /24 subnet). The Protocol displayed in the form of: IP-address –available/unavailable for each of the addresses. Please help, for earlier thanks for the answer!
  8. How to show a progress or percentage bar on script?

    Hi, I'm a student and I have to create a script, but I want to show a progress bar when the script is making a backup. For example, I'm making a full backup of the FreeBSD system and while the script is making the job, I want to show a progress or a bar percent completed, is that possible on...
  9. daruffneck2

    Solved root or userland for cron job

    May someone can help me out. I want to use a script everytime my machine boots up. Execute before even the splash screen pops up. As I am the single user, I could set it as root in the crontab /etc/crontab following the handbook, so it would act for each other user. If I do so, do I set it as a...
  10. Script to shutdown remote system?

    Ultimately, I want to shutdown a freebsd box from my android (there are lots of android apps to run scripts). I do not want to be prompted for a password. One step at a time, first I just want to shut down the remote from another freebsd box. The following did not work: #!/bin/sh ssh -t...
  11. CleanCut

    Solved Why won't my "new-style" rc script start at boot?

    On pfSense 2.2.4 (FreeBSD 10.1), my custom init script filebeat_wrapper won't start at boot. According to rcorder it should start right after boot: # rcorder /etc/rc.d/* /usr/local/etc/rc.d/* (snip) /etc/rc.d/SERVERS /etc/rc.d/DAEMON /etc/rc.d/LOGIN /usr/local/etc/rc.d/filebeat_wrapper (snip)...
  12. Hornpipe2

    Perl Script to Plot Dependencies

    I was interested in seeing a graph of package dependencies, so I could trace which packages were needed by which in a complete tree. portmaster -l can give basic information (leaf, trunk, root, branch) but does not show the relationships. I wrote the following tool to list dependencies as a...
  13. Kalero

    SmartGit on FreeBSD

    Hi, yesterday, I attempted to install the latest SmartGit release on my FreeBSD (10.2) and, being written in Java, it should work. But when I run the boot script I get these exceptions: Error invoking SmartGit java.lang.reflect.InvocationTargetException at...