Sponsored Content
Full Discussion: Problem with "file" command
Top Forums UNIX for Dummies Questions & Answers Problem with "file" command Post 302253448 by rprajendran on Friday 31st of October 2008 03:27:58 PM
Old 10-31-2008
Problem with "file" command

Hi all,

We are using Solaris 5.9 .
Sometimes file command is not returning correct type of file.

For a pgp encrypted file, it is showing as a ascii text file.

#file Textfile1.pgp
Textfile1.pgp: ascii text

I'm confirm that Textfile1.pgp is a pgp encrypted file.It is not showing it as a data file instead as a ascii text file.

Please help us.
 

10 More Discussions You Might Find Interesting

1. UNIX for Dummies Questions & Answers

Unix "at" / "Cron" Command New Problem...Need help

Hi All, I am trying to schedule a one time job using the at command with the help of shell script for my project. The shell script should take a parameter as a command line argument from the at command itself. Is it possible to take a command line parameter for a shell script in the command... (3 Replies)
Discussion started by: Mohanraj
3 Replies

2. UNIX and Linux Applications

A question/problem about oracle "tns listener" and "enterprise manager"

hi, I have * an IBM P550 machine, * an AIX 5.3 running on it and * an oracle database, already installed on it. The problem (or question of my own) is: Oracle tns listener, "CT_LISTENER", and the enterprise manager (EM) of the instance, which is uniq instance and called... (0 Replies)
Discussion started by: talipk
0 Replies

3. UNIX for Advanced & Expert Users

A question/problem about oracle "tns listener" and "enterprise manager"

hi, I have a problem about the Oracle related components. I'm not able to find any answer yet, and waiting for your responses... Here is the configuration of my system: * an IBM P550 machine, * an AIX 5.3 running on it and * an oracle database, already installed on it. The problem (or... (1 Reply)
Discussion started by: talipk
1 Replies

4. Shell Programming and Scripting

Command Character size limit in the "sh" and "bourne" shell

Hi!!.. I would like to know what is maximum character size for a command in the "sh" or "bourne" shell? Thanks in advance.. Roshan. (1 Reply)
Discussion started by: Roshan1286
1 Replies

5. Shell Programming and Scripting

awk command to replace ";" with "|" and ""|" at diferent places in line of file

Hi, I have line in input file as below: 3G_CENTRAL;INDONESIA_(M)_TELKOMSEL;SPECIAL_WORLD_GRP_7_FA_2_TELKOMSEL My expected output for line in the file must be : "1-Radon1-cMOC_deg"|"LDIndex"|"3G_CENTRAL|INDONESIA_(M)_TELKOMSEL"|LAST|"SPECIAL_WORLD_GRP_7_FA_2_TELKOMSEL" Can someone... (7 Replies)
Discussion started by: shis100
7 Replies

6. UNIX for Dummies Questions & Answers

Unix "look" Command "File too large" Error Message

I am trying to find lines in a text file larger than 3 Gb that start with a given string. My command looks like this: $ look "string" "/home/patrick/filename.txt" However, this gives me the following message: "look: /home/patrick/filename.txt: File too large" So, I have two... (14 Replies)
Discussion started by: shishong
14 Replies

7. Shell Programming and Scripting

Problem with "find" and "grep" command

I want to list all files/lines which except those which contain the pattern ' /proc/' OR ' /sys/' (mind the leading blank). In a first approach I coded: find / -exec ls -ld {} | grep -v ' /proc/| /sys/' \; > /tmp/list.txt But this doesn't work. I got an error (under Ubuntu): grep:... (5 Replies)
Discussion started by: pstein
5 Replies

8. UNIX for Dummies Questions & Answers

Using "mailx" command to read "to" and "cc" email addreses from input file

How to use "mailx" command to do e-mail reading the input file containing email address, where column 1 has name and column 2 containing “To” e-mail address and column 3 contains “cc” e-mail address to include with same email. Sample input file, email.txt Below is an sample code where... (2 Replies)
Discussion started by: asjaiswal
2 Replies

9. UNIX and Linux Applications

Problem on SQLplus command ""bash: sqlplus: command not found""

Hi all, i face an error related to my server ""it's running server"" when i use sqlplus command $ sqlplus bash: sqlplus: command not found the data base is up and running i just need to access the sqlplus to import the dump file as a daily backup. i already check the directory... (4 Replies)
Discussion started by: clerck
4 Replies

10. Shell Programming and Scripting

Bash script - Print an ascii file using specific font "Latin Modern Mono 12" "regular" "9"

Hello. System : opensuse leap 42.3 I have a bash script that build a text file. I would like the last command doing : print_cmd -o page-left=43 -o page-right=22 -o page-top=28 -o page-bottom=43 -o font=LatinModernMono12:regular:9 some_file.txt where : print_cmd ::= some printing... (1 Reply)
Discussion started by: jcdole
1 Replies
SENDFILE(1)						      General Commands Manual						       SENDFILE(1)

NAME
sendfile - send file(s) via Internet SYNOPSIS
sendfile [ -stMgduzvolSPiqQV ] [ -c=" comment" ] [ -C=program ] [ -ps=[my_ID] ] [ -pe=[to_user] ] [ -m LIMIT ] file [...] user[@host] sendfile -a="archive" [ -uviqQ ] [ -c=" comment" ] [ -C=program ] [ -ps[=my_ID] ] [ -pe[=to_user] ] file_or_directory [...] recipient DESCRIPTION
sendfile sends files to the specified recipient. On the receiving site there must be a SAFT-server (Simple Asynchronous File Transfer) installed like sendfiled which stores incoming files into the recipients spool-directory. SAFT knows about 4 file types: BINARY Byte-stream file which will not be modified. SOURCE Record oriented program source file. Only EOL will be translated. TEXT Human readable text files. EOL and the character set (like German umlauts) will be translated. MIME Multipurpose Internet Mail Extension file as defined by RFC 2045-2049. Files can be sent compressed or pgp-encrypted and/or pgp-signed. As an extension to SAFT, sendfile is able to send multiple binary files in one archive file. Default mode for sendfile is sending compressed binary files. Compression will be disabled for hosts which are inside your LAN and for files which cannot be compressed. With the helper program sfconf you can easily configure sendfile. ARGUMENTS
You have to specify at least one file name and the recipient's address. An address can be specified as: user a local user or a sendfile alias (see below), e.g.: framstag user@host an user on a remote host, e.g.: framstag@bofh.belwue.de saft://host/user like above, but in URL-syntax, e.g.: saft://bofh.belwue.de/framstag saft://host:port/user like above, but with alternate SAFT-port, e.g.: saft://bofh.belwue.de:4870/framstag OPTIONS
-4, -6 Explicitly force IPv4 or IPv6 connections. By default, the program will try to resolve the name given, and choose the appropriate protocol automatically. If resolving a host name returns both IPv4 and IPv6 addresses, sendfile will try to use the adresses in the order they are returned by the resolver. -s Send in source mode (not needed if sending to a unix host). -t Send in text mode (not needed if sending to a unix host). -M Send MIME file (must be external composed before!). -g Send in guessed mode: sendfile tries to guess the correct mode (source, text or binary). This will not work in every case and not on all platforms! -i Print more transaction information. -v Verbose mode: show SAFT protocol messages. -V Show version information and exit. -u Send uncompressed. -z Send compressed. -a Send files or whole directories as one archive (binary mode only). You have to specify an archive name. -d Delete previous sent file. No wildcards allowed. -o Overwrite already sent file(s) with same name. -P Read file from stdin. You must specify a file name, too. -S Spool file into outgoing queue for later processing. You must run a sendfiled which supports this mode. -l List files in the outgoing spool. -q Quiet mode 1: print no transfer messages. -Q Quiet mode 2: print no transfer, information or warning messages. -c Add a short comment to a single file. -C Force usage of specified compression program (gzip or bzip2). -pc Encrypt file(s) with pgp (IDEA symmetric). -pe Encrypt file(s) with pgp (public key). -ps Add pgp signature(s) to the file(s). -m Limit the maximum thruput (in KB/s). ARGUMENTS
user Recipient user name. Can be an alias, too. See below. file File name to be sent. Only when using the -a="archive" option you may specify any file or directory. EXAMPLES
sendfile -t project.txt chief@bigvax.somewhere.net sendfile -a=jokes -c 'from Gary Larson' *.gif framstag FILES
/etc/sendfile.deny Users which are not allowed to receive files or messages (set by root). /var/spool/sendfile/$USER/config/config Your configuration file. Valid entries are (the | symbol means " or"): bell = on|off add a bell when a file or message arrives. deleting = on|off allow remote users to delete their files after transmission msglog = on|off log incoming messages in /var/spool/sendfile/$USER/msglog notification = none|both|mail [user@host]|message [user@host] send a notification when a file has been arrived via mail or message or none or both mechanism. forward = user@host set a forward address. /var/spool/sendfile/$USER/config/restrictions List of addresses from where you don't want messages or files. The format is: user@host [mfb] m stands for messages, f for files and b for both. Wildcards * and ? are allowed. Examples: gates@microsoft.com b *aol.com m You may also specify the addresses in URL-syntax. /var/spool/sendfile/$USER/config/aliases The sendfile alias file. Format: alias address [sendfile-options] Example: chief grmblfz@bigvax.somewhere.net ccc chaoscomputerclub@saft.ccc.de -pe -ps You may also specify the addresses in URL-syntax. SEE ALSO
sfconf receive(1) sendmsg(1) fetchfile(1) AUTHOR
Ulli Horlacher - framstag@rus.uni-stuttgart.de 3rd Berkeley Distribution SENDFILE(1)
All times are GMT -4. The time now is 10:22 PM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy