Can I do something like this from a shellscript ?:
ftp 12.34.56.78 <<!
username
password
put a.c
bye
!
It does not go through as the login fails.
Is there any alternative to do the above requirement?
Thanks in advance.
Gowrish (3 Replies)
Folks;
on a unix server I have a mapping file which holds a list mountpoints of all databases and their mountpoints. tab delimited or colon deliminted..I needed to copy the datafiles from the pristine mountpoints to test's mountpoints in this case. I needed to do this by passing sid name using... (18 Replies)
Iam new to shellscript.
1)How to strart QUERYMANAGER using shellscript.
2)How to put and get messages in MQSeries using shellscripts.
3)iam using local queues .
Thanks lot. (0 Replies)
hI,
Pls consider the following shell script
#!/bin/csh -f
sqlplus tkyte/tkyte <<"EOF" > tmp.csh
set serveroutput on
declare
a number:=5;
begin
dbms_output.put_line( 'a:='||a );
end;
/
spool off
"EOF"
The above script does the followin
1)it connects... (1 Reply)
Hello. I am a novince at writing shell scripts but here is the question. I have to write a shell script that does the following:
Once executed via crontab, the script should do the following:
a. get date/time stamp in for format 10-MAR-05 and
b. execute shell script my_script.sh (which... (2 Replies)
hi all,
i need the shell script for he below requirement
i had the input file as
a_20121217_035120( frmat is a_date_hhmmss)
a_20121217_035128
a_20121217_035456
a_20121217_035767
a_20121217_035178
a_20121217_035189
a_20121217_035220
my output should be
a_20121217_035456... (0 Replies)
cat << EOF | telnet alt1.aspmx.l.google.com 25
HELO verify-email.org
MAIL FROM: <check@verify-email.org>
RCPT TO: <test@gmail.com>
quit
EOF
Hello, I'm trying to get the result of that execution, and can not see the result or bring it to a txt ... the direct command in ssh running the result... (5 Replies)
Discussion started by: c0i0t3
5 Replies
LEARN ABOUT OSF1
ar
ar(4) Kernel Interfaces Manual ar(4)NAME
ar - Archive (library) file format
SYNOPSIS
#include <ar.h>
DESCRIPTION
The archive command (ar) combines several files into one. Archives are used mainly as libraries to be searched by the link-editor ld.
A file produced by ar has a magic string at the start, followed by the constituent files, each preceded by a file header. The magic number
and header layout as described in the include file are:
COMMON ARCHIVE FORMAT
ARCHIVE File Organization: _______________________________________________ |__________ARCHIVE_MAGIC_STRING_______________| |__________AR-
CHIVE_FILE_MEMBER_1______________| | | | Archive File Header "ar_hdr" |
|.............................................| | Member Contents | | 1. External symbol directory
| | 2. Text file | |_____________________________________________| |________ARCHIVE_FILE_MEM-
BER_2________________| | "ar_hdr" | |.............................................| | Member Con-
tents (.o or text file) | |_____________________________________________| | . . . | | .
. . | | . . . | |_____________________________________________| |________AR-
CHIVE_FILE_MEMBER_n________________| | "ar_hdr" | |.............................................| |
Member Contents | |_____________________________________________|
The name is a blank-padded string. The ar_fmag field contains ARFMAG to help verify the presence of a header. The other fields are left-
adjusted, blank-padded numbers. They are decimal except for ar_mode, which is octal. The date is the modification date of the file at the
time of its insertion into the archive.
Each file begins on an even (0 mod 2) boundary; a new-line is inserted between files if necessary. Nevertheless the size given reflects
the actual size of the file exclusive of padding.
There is no provision for empty areas in an archive file.
The encoding of the header is portable across machines. If an archive contains printable files, the archive itself is printable.
RESTRICTIONS
File names lose trailing blanks. Most software dealing with archives takes even an included blank as a name terminator.
RELATED INFORMATION ar(1), ld(1), nm(1) delim off
ar(4)