10 More Discussions You Might Find Interesting
1. UNIX for Beginners Questions & Answers
I have prepared script to get the file details everyday and send mail. while running bash script manually , it sends output in body . but does not send through cron.
cron sends only subject . I believe have to use some wait or sleep syntex. to complete first . please help.
#!/bin/bash
ls... (10 Replies)
Discussion started by: yash_message
10 Replies
2. Programming
to run most other scripts through a pipe, something similar to the following is usually enough:
cat script.sh | sh
cat perl.pl | perl -- "<arguments"
However, for javascript command line scripts, i cant seem to get this to work. Any ideas?
cat hull.js
#!/usr/bin/js
... (3 Replies)
Discussion started by: SkySmart
3 Replies
3. HP-UX
I have 4 HPUX 11.31 servers with the same Quality Pack bundles. "AS FAR AS I CAN TELL" no system files have been modified.
/usr/bin/ps is the same date size and creation date
terminfo file (x-->xterm) is the same date size and creation date
shell (ksh) is the same date size and creation date
... (4 Replies)
Discussion started by: mrmurdock
4 Replies
4. Shell Programming and Scripting
Hi All,
I am running the below shell script through cron and surprisingly it gives different output
$uname -a
Linux 2.6.18-194.3.1.7.3.el5xen #1 SMP Fri Jul 30 00:08:45 EDT 2010 x86_64 x86_64 x86_64 GNU/Linux
$ echo $SHELL
/bin/bash
shell script:
cat sar_cpu.sh
#!/bin/bash
... (10 Replies)
Discussion started by: a1_win
10 Replies
5. Shell Programming and Scripting
Hi Guys,
What I am looking at doing is to run a C program in my home directory, but output files in multiple directories BUT not at the same instance.
For e.g.
1st instance:
Run program.c and output results in path /aaa/bbb/ccc/
2nd instance:
Run program.c again and output results... (9 Replies)
Discussion started by: Jatsui
9 Replies
6. UNIX for Dummies Questions & Answers
When I manually run a sftp to a remote server I receive the following output on he screen;
Uploading filename to /inbound/xxxxxxx_Folder_1/filename
filename 100% 50 0.1KB/s ... (1 Reply)
Discussion started by: rugggy
1 Replies
7. Shell Programming and Scripting
When I manually sftp a file to a remote server I get the following output on the screen;
Uploading filename to /inbound/xxxxxxx_Folder_1/filename
filename 100% 50 0.1KB/s 00:00
When I run the commands from within a shell script I do not get the "filename ... (0 Replies)
Discussion started by: rugggy
0 Replies
8. Shell Programming and Scripting
Hi,
I have ascript which drops a mail with the jobs status.
here is the script:
#!/bin/ksh
mypath=/home/gaddamja
flashlogpath=/sbcimp/dyn/data/flash/log
cd $mypath
v1=`ls -lrt | grep -i checkFilesForAmber_EUR1. |tail -1 | awk '{print $8}'`
v2=`cat $v1`
cd $flashlogpath
... (1 Reply)
Discussion started by: jagadish_gaddam
1 Replies
9. UNIX for Advanced & Expert Users
I ran an fs_usage (based off dtrace facility) but someone closed the window I think.. But I still see the process running # 15023 I tried fg 15023 but it told me no job control.. Is there anyway I can see my output? The scan has been running an hour and the output is valuable to me. (3 Replies)
Discussion started by: glev2005
3 Replies
10. Shell Programming and Scripting
Not sure why this does not work in bash:
tail -f err.log |&
-bash: syntax error near unexpected token `&'
I am attempting to continuously read a file that is being updated by doing a "tail -f" on the file and piping the output to stdin which can then be read by the next shell command
Thnx (4 Replies)
Discussion started by: anuramdas
4 Replies