Sponsored Content
Top Forums Shell Programming and Scripting How to empty a file(already created) Post 302125190 by laknar on Wednesday 4th of July 2007 10:26:30 AM
Old 07-04-2007
How to empty a file(already created)

What is the command to empty an already existing file.

please provide me.i used Touch cmd to empty the file.but it changing the time only.
 

10 More Discussions You Might Find Interesting

1. UNIX for Dummies Questions & Answers

How to know when a new file is created?

Hi All, How to we get to know when say a new log file is created on an Unix box. I need to trigger a process(say a script) when the new log file is created. But i need to know by some means or generate a trigger when a new file is created???? Something like when we receive a new mail we... (1 Reply)
Discussion started by: aixjadoo
1 Replies

2. UNIX for Dummies Questions & Answers

Getting same exit status for empty and non empty file

Hi All, I am checking for a empty input file to do some further action , but I am getting exit status 0 in both the cases , for empty and non empty file both. The value of $? is coming 0 in if part also and else part too. #!/bin/ksh if ]; then echo "data" # exit 0 echo "$?" else... (4 Replies)
Discussion started by: mavesum
4 Replies

3. AIX

While trying to do ssh without password, rsa key file is created as empty.

Hi i have aix 5.3 operating system, and i am trying to do ssh without passwd, when i tried to create a rsakey, it produces empty file as an output, how can solve that problem? why it is giving empty output file, i tried with different user, situation same,.i have restarted sshd server. .ssh... (2 Replies)
Discussion started by: nibiru78
2 Replies

4. Shell Programming and Scripting

perl script to check if empty files are created and delete them and run a shell script

I have a local linux machine in which the files are dumped by a remote ubuntu server. If the process in remote server has any problem then empty files are created in local machine. Is there any way using perl script to check if the empty files are being created and delete them and then run a shell... (2 Replies)
Discussion started by: hussa1n
2 Replies

5. Homework & Coursework Questions

how to delete core file (file created due to apps crashed)

1. The problem statement, all variables and given/known data: When looking for corefiles, include any file with core in its name. (Some UNIX/Linux systems add the PID of the process that created the core to reduce the chances of overwriting an already existing core file that might be needed. The... (6 Replies)
Discussion started by: s3270226
6 Replies

6. UNIX for Dummies Questions & Answers

Who created a file?

Hi!Can somebody tell me what command can I use to find who created a file,please? (6 Replies)
Discussion started by: teotrask
6 Replies

7. UNIX for Dummies Questions & Answers

How to find out when a file was created?

Hi All I use solaris 9 and just realised my opt volume has grown to 99%. How can I find out which file was created on the opt volume for it to have grown to 99%? Which command should I use since I can't go through each individual file to look at the date the files were created. Regard (3 Replies)
Discussion started by: rahmantanko
3 Replies

8. Shell Programming and Scripting

Changing file permissions of a file created by another user

Hi, I have used expdp for datapump. The .dmp file is created by the "oracle" user. my requirement is to make a zipped file of this .dmp file. What i am trying to do is change the permissions of this .dmp file from 0640 to 0644 and then do a gzip and zip it. Is there any way i can change... (3 Replies)
Discussion started by: qwertyu
3 Replies

9. UNIX for Dummies Questions & Answers

Vi Created empty file

Hi, While creating a file by vi by mistake I created a file with empty name. Please tell me how to delete it (7 Replies)
Discussion started by: nag_sathi
7 Replies

10. Shell Programming and Scripting

File not getting created

hi, i have a script wrriten where there is a temporary files getting created: echo "From:" ${usrname}@apps.mc.xerox.com>mail_txt it was working from a long time but now there is a error creating while creating this temporary file. here is the error log for this:... (15 Replies)
Discussion started by: lovelysethii
15 Replies
isdn_audio(4)							   Special files						     isdn_audio(4)

NAME
isdn_audio - audio extension of ttyI ISDN character devices DESCRIPTION
This document describes the audio related extensions of the modem emulation, provided by /dev/ttyIx. The ISDN tty devices are equipped with a modem emulation implementing a set of traditional and some special AT commands. This provides easy use together with almost all communication software that uses modem commands: minicom(1), seyon(1), XCept(1), uucico(8), mgetty(8), dip(8), pppd(8) and more. When enabled during kernel configuration, the emulator is capable of a reduced set of commands to support audio. To use audio features, an ISDN card with a audio-capable low-level driver is needed. Currently the only audio-capable drivers are the teles and HiSax driver. The port speed of the ISDN tty devices is always 64000 bps. AUDIO RELATED AT COMMAND SET
This description does not include the standard AT command set. For a description of the standard AT command set, provided by the Linux ISDN subsystem, see ttyI(4). All commands starting with AT+ except AT+FCLASS are enabled only, if audio mode is active. The following audio related AT commands are supported by ISDN tty devices: AT+FCLASS=0 Disable audio mode (default). This command sets register 18 to 4. AT+FCLASS=8 Enable audio mode. This command sets register 18 to 5. AT+FCLASS=? Show possible modes. AT+FCLASS? Show current mode. AT+VNH=x No function, provided for compatibility only. AT+VNH=? Always showing "1". AT+VNH? Always showing "1". AT+VIP Reset all audio parameters. AT+VLS=x Select line x, where x is one of the following: 0 = No device. 2 = Phone line. AT+VLS=? Always showing "0,2". AT+VLS? Show current line. AT+VRX Start audio recording. See below for more information. AT+VSD=x,y Set silence-detection parameters. Possible parameters: x = 0 ... 31 sensitivity threshold level. (default 0 , deactivated) y = 0 ... 255 range of interval in units of 0.1 second. (default 70) AT+VSD=? Show possible parameters. AT+VSD? Show current parameters. AT+VSM=x Select audio data format to x, where x is: 2 = ADPCM-2 3 = ADPCM-3 4 = ADPCM-4 5 = aLAW 6 = uLAW AT+VSM=? Show possible audio data formats. AT+VSM? Show current audio data format. AT+VTX Start audio playback. See below for more information. GENERAL BEHAVIOUR
On incoming calls, if the application responds to a RING by sending ATA, depending on the calling service, the emulator responds with either CONNECT (data call) or VCON (voice call). When starting audio playback or recording, the emulator responds with CONNECT. After that, the data transfer protocol described below is used. It is possible to initiate full duplex data transfer by issuing AT+VRX+VTX in a single command. In this case, no CONNECT message is sent to the application and the protocol described below is started immediately. When stopping audio playback or recording, the message returned by the emulator depends on how the data transfer is stopped. If the data transfer is stopped by a remote hangup, NO CARRIER is sent to the application, while stopping data transfer with one of the DLE sequences, VCON is sent. In any case, the message is preceded by the appropriate DLE sequence for end of audio data and/or abort respectively. On outgoing voice calls, the emulator responds with VCON upon connection setup. AUDIO DATA FORMAT
When recording or playing back audio data, a kind of modified bisync protocol is used. When recording audio data, the modem emulator is considered to be the sender, while the application is the receiver. When playing back, this relationship is reversed: The modem emulator acts as receiver, while the application is the sender. With the bisync protocol the character DLE (0x10) has a special meaning and is used like an escape character. It is always followed by a second character which has the following meanings defined: ETX (0x03) End of audio data. This code has to be sent by the sender, indicating end of audio data. DC4 (0x14) Abort sending. This code has to be sent by the receiver, when it wishes to abort receiving data. The sender has to reply by stop sending data and finally indicating end of audio data. DLE (0x10) a single byte with value 0x10 in the data stream. 0 Touch-tone "0" received. Valid only in direction from emulator to application. 1 Touch-tone "1" received. Valid only in direction from emulator to application. 2 Touch-tone "2" received. Valid only in direction from emulator to application. 3 Touch-tone "3" received. Valid only in direction from emulator to application. 4 Touch-tone "4" received. Valid only in direction from emulator to application. 5 Touch-tone "5" received. Valid only in direction from emulator to application. 6 Touch-tone "6" received. Valid only in direction from emulator to application. 7 Touch-tone "7" received. Valid only in direction from emulator to application. 8 Touch-tone "8" received. Valid only in direction from emulator to application. 9 Touch-tone "9" received. Valid only in direction from emulator to application. # Touch-tone "#" received. Valid only in direction from emulator to application. * Touch-tone "*" received. Valid only in direction from emulator to application. A Touch-tone "A" received. Valid only in direction from emulator to application. B Touch-tone "B" received. Valid only in direction from emulator to application. C Touch-tone "C" received. Valid only in direction from emulator to application. D Touch-tone "D" received. Valid only in direction from emulator to application. AUTHOR
Fritz Elfert <fritz@isdn4linux.de> SEE ALSO
ttyI(4). ISDN 4 Linux 3.13 1999/09/06 isdn_audio(4)
All times are GMT -4. The time now is 01:51 PM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy