8 More Discussions You Might Find Interesting
1. Shell Programming and Scripting
Hi, I have written a script that allows me to repetitively play a music file $N times, which is specified through user input. However, if I want to exit the script before it has finished looping $N times, if I use CTRL+c, I have to CTRL+c however many times are left in order to complete the loop.... (9 Replies)
Discussion started by: hilltop_yodeler
9 Replies
2. Shell Programming and Scripting
Hi all,
I have tried the below code to execute.
#! /bin/bash
date1=`date -d "today 08:00:00" +%s`
date2=`date -d "today 08:01:00" +%s`
path=/home/user01/red/IDC/sample
cd $path
java Cspsamp 111.19.5.172 7025 rd1 rd1 "5022=Query|5026=109378|4=627|5=E:VD|5042=$date1|5049=$date2"... (5 Replies)
Discussion started by: aish11
5 Replies
3. UNIX for Dummies Questions & Answers
I have the following log file running since yesterday and its consuming so much of the disk space.
-rw-rw-r-- 1 dev dba 4543237120 Nov 10 09:00 load_run_file1_0.1111091224.lg
How do i kill this process. I don't have any idea of stopping this. Any help would be really appreciated.
... (3 Replies)
Discussion started by: bobby1015
3 Replies
4. Shell Programming and Scripting
I have this "process keepalive" script:
#!/bin/bash
PIDFILE=/tmp/php.pid
PHPSCRIPT=/home/www/mydomain.com/subdomains/www/parser.php
echo 'Checking php process from PID file'
if ; then
PID=`cat $PIDFILE`
if ps ax | grep -v grep | grep $PID > /dev/null
then
echo "php process still... (4 Replies)
Discussion started by: LukasB
4 Replies
5. Shell Programming and Scripting
Hi there,
I have written a script to check daily process,
each script is in a different directory.
Now the first process is running fine, when it goes to the next directory the process doesn't executes.
cd result/logs
ref=month_1888.log
echo $ref>> $logfile
cd /max/tot/first... (3 Replies)
Discussion started by: NehaKrish
3 Replies
6. Programming
Hi All
I know How to attach a process to beubg it .But for my application I am using client as well server.Both are two separate process .Suppose I need to debug both .How to attach both of them together .Or I have to attach them separetly .
Suppose client process id is 1325 and server is... (2 Replies)
Discussion started by: mr_deb
2 Replies
7. AIX
Dears all
i have an AIX box in which i am facing a problem with a process as below:
/usr/dt/bin/dtexec -open 0 -ttprocid
and each time i am killing this process with "kill -9" then it run again after a while.
any ideas or solutions will be appreciated. (13 Replies)
Discussion started by: TheEngineer
13 Replies
8. Shell Programming and Scripting
Hi ,
I have a situation, where I have 10 indivudal processess started by similar instance.I say similar instance because each of them being started as a new thread:
Say I've following unix process running
process1_ADAP
process2_ADAP
process3_ADAP
Current scenario:
Now I have SHUTDOWN... (5 Replies)
Discussion started by: braindrain
5 Replies
SMFREC(1) BSD General Commands Manual SMFREC(1)
NAME
smfrec -- record a standard MIDI file
SYNOPSIS
smfrec [-amxy] [-g measure] [-d devname] [-i devname] midifile
DESCRIPTION
The smfrec utility records a MIDI file. It can add recorded events on top of an existing midi file. To stop performance, send an interrupt
signal to smfrec (for instance by pressing control ^C on the terminal). The options are as follows:
-a Append mode. Play the given midi file and append to it a new track containing recorded events.
-m Use metronome.
-x Synchronise to the default midi(4) device instead of using an internal clock source.
-y Send midi timing information to the default device. Useful if it is a slave MIDI sequencer.
-g measure Start playback and recording at the given measure number.
-d filename Default midi(4) device from which to record and on which to send midi events. If not specified, the content of the MIDIDEV
environment variable will be used instead.
-i filename Alternate input midi(4) device. Voice events (notes, controllers, etc) received on the input device will be recorded and sent
as-is to the default device. Without this flag, the default device will be used for input.
The smfrec utility is an interface to midish(1). If more specific features are needed, the user may consider using midish(1).
EXAMPLES
The following will play mysong.mid and append to it recorded events from device /dev/rmidi4; metronome will be used.
$ smfrec -a -m -d /dev/rmidi4 mysong.mid
SEE ALSO
smfplay(1), midish(1), midi(4)
BSD
August 27, 2005 BSD