03-26-2013
Is this running over any medium that might add delay, that a line with no linefeed might hang up? Try also expecting the '[disk formatted]' line, as early input will not be lost.
10 More Discussions You Might Find Interesting
1. Shell Programming and Scripting
Hi,
I have tried to sent a mail with body and attachment. But the shell script got hanging while executing that command. The command is
"(cat body;uuencode att1.csv)|mailx -s "Production Monitoring Report(Unix Side)" milton.yesusundaram@patni.com"
where body is a file having a single line.... (2 Replies)
Discussion started by: miltony
2 Replies
2. Shell Programming and Scripting
Hi,
I have a script that takes the contents of another file as inputs. Its assumed that there are 3 values in the input file that are seperated by '|'. I have to check in my script, whether the filed seperator used in the input file is '|' or not. If its not a '|' I have to print a error... (13 Replies)
Discussion started by: sendhilmani123
13 Replies
3. UNIX for Advanced & Expert Users
i am using a script to create a file which contains the mail to be sent.in every steo this file grts appended through out the script using several variables.now i want to convert it into html format so that the mail will have better look and feel and the font color and size can be changed.
i tried... (3 Replies)
Discussion started by: dr46014
3 Replies
4. Shell Programming and Scripting
Hi All,
I am not able to read my HTML form inputs properly in my script.
I have a textarea in my form where user needs to enter sql query... but when user enter query like below :
select * from order_queue where NUM_OF_PICKUP >=3 and TRANSACTION_TYPE=4 ;
its coming like :
select 171_arc... (3 Replies)
Discussion started by: askumarece
3 Replies
5. Shell Programming and Scripting
Hello Expect experts,
Is it possible with Expect to run a command first when an expected phrase is
outputted by a spawned program? Before sending an answer to the spawned program that is...
Thanks a lot. (2 Replies)
Discussion started by: Tr00tY
2 Replies
6. Shell Programming and Scripting
Hi I need a help for below :
I am running an application XXXX , and when it starts i am passing a file name called "connect.spb" and after the application connects to the server i am sending filename "accept.spb" as a parameter.
DL385:$ ./XXXX
This is XXXX (Reproducer by Order or RelaY)
... (1 Reply)
Discussion started by: srkelect
1 Replies
7. Shell Programming and Scripting
still new to this expect
useing bach shell to cammand expect script i tink i have that right!
i want to have the test im running upon every complted cycle copyed to a folder. cant seem to get it to work.
Ive tryed
log_file -a $globallogdir/deveoper.log
proc dbglog {notsure what... (0 Replies)
Discussion started by: melvin
0 Replies
8. Shell Programming and Scripting
All,
I am trying to use expect to send SFTP password because I am unable to share a key with the vendor.
They gave me a password that uses some symbols in it like $ and !
When i try to use the send command in expect it thinks the $ is a variable.
Is there anyway to have it send the... (2 Replies)
Discussion started by: markdjones82
2 Replies
9. Shell Programming and Scripting
How Can I send the content of a file in Expect? Do I have to use cat command in a way? if yes how? lets say my file is called 1.txt.
example:
expect "Enter command to send:" {send "???? \r"} ???? --> content of the file 1.txt (1 Reply)
Discussion started by: alireza6485
1 Replies
10. Shell Programming and Scripting
hi
i want to automate fdisk command .
i spawned a process containing fdisk command from a process
and tried to send the options to fdisk promt from that process.
but that spawed process is notstarting itself
help me out
trying for two days
:wall:
my code:
#!/bin/bash
echo... (5 Replies)
Discussion started by: jagak89
5 Replies
LEARN ABOUT DEBIAN
hformat
HFORMAT(1) General Commands Manual HFORMAT(1)
NAME
hformat - create a new HFS filesystem and make it current
SYNOPSIS
hformat [-f] [-l label] destination-path [partition-no]
DESCRIPTION
hformat is used to write a new HFS filesystem to a volume. A UNIX pathname to the volume's destination must be specified. The destination
may be either a block device or a regular file, but it must already exist and be writable.
An optional label can be specified to name the volume. The name must be between 1-27 characters and cannot contain a colon (:). By default,
the volume will be named Untitled.
If the destination medium is partitioned, one partition must be selected to receive the filesystem. If there is only one HFS partition on
the medium, it will be selected by default. Otherwise, the desired partition number must be specified (as the ordinal nth HFS partition) on
the command-line. The size of the partition determines the size of the resulting volume.
Partition number 0 can be specified to format the entire medium as a single filesystem without a partition map, erasing any existing parti-
tion information. Since this will destroy all the partitions, the -f option must be specified to force this operation if the medium cur-
rently contains a partition map.
If the medium is not partitioned (or if partition 0 is specified), the size or capacity of the medium determines the size of the resulting
volume.
The new volume will be empty and will become "current" so subsequent commands will refer to it. The current working directory for the vol-
ume is set to the root of the volume.
EXAMPLES
% hformat /dev/fd0
If a floppy disk is available as /dev/fd0, this formats the disk as an HFS volume named Untitled. (N.B. The floppy must already
have received a low-level format by other means.)
% dd if=/dev/zero of=disk.hfs bs=1k count=800
% hformat -l "Test Disk" disk.hfs
This sequence creates an 800K HFS volume image in the file disk.hfs in the current directory, and names it Test Disk.
% hformat -l "Loma Prieta" /dev/sd2 1
If a SCSI disk is available as /dev/sd2, this initializes the first HFS partition on the disk (which must already exist) with a new
filesystem, naming the resulting volume Loma Prieta.
% hformat -f /dev/sd2 0
This causes the medium accessible as /dev/sd2 to be reformatted as a single HFS volume, ignoring and erasing any existing partition
information on the medium. The -f option must be specified if the medium is currently partitioned; otherwise the command will fail.
NOTES
This command does not create or alter partition maps, although it can erase them (as described above). Any partition number specified on
the command line must already exist.
The smallest volume size which can be formatted with hformat is 800K.
SEE ALSO
hfsutils(1), hmount(1)
FILES
$HOME/.hcwd
AUTHOR
Robert Leslie <rob@mars.org>
HFSUTILS
08-Nov-1997 HFORMAT(1)