Thursday, November 10, 2011

Send files from command line


mandar un archivo:



uuencode surfing.jpeg surfing.jpeg | mail sylvia@home.com


Un directorio
tar cvf - panda | uuencode panda.tar | mail whoever@whatever.com 
tar zcvf - *psf MoS2-wire.out ds5b_30atms.DM ds5b_30atms.XV 
ds5b_30atms.STRUCT_NEXT_ITER  ds5b_30atms.STRUCT_OUT | uuencode MoS2.pseudo.tgz 
| mail quevedin@gmail.com 



Job Ranger


#!/bin/bash
#$ -V # Inherit the submission environment
#$ -cwd # Start job in submission directory
#$ -N MoS2-crushed # Job Name
#$ -j y # Combine stderr and stdout
#$ -o $JOB_NAME.o$JOB_ID # Name of the output file (eg. myMPI.oJobID)
#$ -pe 16way 16 # Requests 16 tasks/node, 32 cores total
#$ -q normal # Queue name "normal"
#$ -A MoS2_Nanocatalysts
#$ -l h_rt=24:00:00 # Run time (hh:mm:ss) - 1.5 hours
#$ -M quevedin+ranger@gmail.com # Use email notification address
#$ -m be # Email at Begin and End of job
#module swap pgi intel/9.1
module load pgi/8.0-6
#/8.0-6pintel/9.1
#module swap mvapich openmpi
#module load openmpi/1.2.4
export GFORTRAN_UNBUFFERED_ALL=1
set -x # Echo commands, use "set echo" with csh
if [ -f MoS2-wire.out ]; then refecha MoS2-wire.out; fi
if [ -f *.ANI ]; then for i in *.ANI ; do refechacp  $i; done; fi
ibrun ~/SIESTA/siesta-3.1/Obj-pgi/siesta < MoS2-wire.final.crushed.fdf | tee MoS2-wire.final.crushed.out # Run the MPI executable named "a.out"