07-03-2011
If I add something between the exit 0 and done, will that be executed after yhe size check has finished ?
Also, I'd prefer to have "the stuff that has to be done by the script" to be only executed once, and before that loop even starts, then loop till the sizechange isn't happenig anymore and after that continue with whatever I might still want.
Could this possibly be done in more compact form (one-liner lol ?)
Thanks for your answer.
10 More Discussions You Might Find Interesting
1. AIX
Can any help me to change the default font type and its size..
To clear more about my question..
Once i login to my unix domain... the font it displaying is of small size...
all my shell commands i am executing in $ prompt also carries the same style(ls, date and echo...)
i searched whole... (2 Replies)
Discussion started by: tsjpraveen
2 Replies
2. UNIX for Dummies Questions & Answers
Hello,
first of all, I want to make myself clear about my language. I'm brazilian, so I ask you all to understand if i commit any mistake with the grammar.
Here is the problem.
Some days ago I needed to use a "sh" command in the Terminal (I use a Mac OSX 10.5.6) followed by a file... (0 Replies)
Discussion started by: anubisbr
0 Replies
3. UNIX for Dummies Questions & Answers
Hi there,
I am having a small issue with the mail function on our controllers. Recently we set up all the boxes as NFS slave servers and mail sending was not affected. We then had to change the servers addresses in resolv.conf and now email is being queued and not being sent.
I have restarted... (3 Replies)
Discussion started by: lodey
3 Replies
4. Shell Programming and Scripting
Hi,
I've written a shell script to take photos with my camera.
After every picture taken, the picture is transmitted to the computer via usb and then deleted on the camera.
But sometimes there's an error and the picture is not deleted and so, after a certain time, the camera chip will be... (4 Replies)
Discussion started by: McLennon
4 Replies
5. Shell Programming and Scripting
Hi All,
How to introduce delay in the Bash/Shell Script till key stroke.
Below is the requirement..
1.Execute set of commands.
2.Display the message echo "press any key to continue"
Introduce a delay till key stroke.
3.Execute next set of commands.
Thanks in Advance
Sunil.K (5 Replies)
Discussion started by: sunilrk07
5 Replies
6. Shell Programming and Scripting
Hi All,
Can anyone refer to me a readymade script for the purpose of log folder size monitoring script.
Example : I have a log folder of size 10 G, and as the logs keep accumulating the folder gets full and i have to manually zip/remove the files in order to keep the server running. Something... (1 Reply)
Discussion started by: findjai
1 Replies
7. Red Hat
Our SAN administrator decided to unpresent then destroy LUN's we were actively using as a volume group (all PV's in said volume group). Now every time I do a pvscan or whatever it complains about I/O errors trying to access those PV's. How do I get it to forget the VG existed completely? vgreduce... (7 Replies)
Discussion started by: thmnetwork
7 Replies
8. Shell Programming and Scripting
can any one help me with a unix command to find out the size of each directory for files placed between 2 dates i.e., date1 & date 2? (3 Replies)
Discussion started by: Codesearcher
3 Replies
9. UNIX for Dummies Questions & Answers
" Script for display sentences with special character"
Hi,
Could any one share a command how to display a line until my target word.
For ex: My file has the content as:
select * from db_wrk where col1 < col2
insert into table_name values('1','2','tst','wrk','dev','prod')
My target... (10 Replies)
Discussion started by: Kalaiselvi66
10 Replies
10. Shell Programming and Scripting
Hi Team,
I am new to shell script and there is a requirement where files should be moved from Subfolder to parent folder.
Eg:
parent folder --> /Interface/data/test/IN
Sub folder -->/Interface/data/test/IN/Invoice20180607233338
Subfolder will be always with timestamp... (6 Replies)
Discussion started by: srivarun15
6 Replies
LEARN ABOUT DEBIAN
obexftp
obexftp(1) obexftp(1)
NAME
obexftp - Mobile Equipment file transfer tool
SYNOPSIS
obexftp [OPTION] [COMMANDS]
DESCRIPTION
obexftp is used to access files on mobile equipment, i.e. cell phones. With obexftpd you can transfer files between any computers using
IrDA, Bluetooth and TCP/IP.
This tool lets you access the ObexFTP library by the means of a command line interface. You might consider using the other means avail-
able. E.g. the ObexFS filesystem for Linux.
OPTIONS
The ordering of options is important. Every command will use the most recent device set. Every file without command switch will apply to
the command given most recent. See EXAMPLES
TRANSPORT OPTIONS
-i, --irda
Connect using the IrDA protocol. This is the default.
-b device, --bluetooth device
Connect to this bluetooth device. If the device is not given the first device found will be used.
-B number, --channel number
Use this bluetooth channel when connecting. The channel will be discoverd automatically if this option is not used.
-d no/address, --hci no/address
Use the bluetooth device referenced by number or address as source device for the connection.
-u intf no, --usb intf no
Connect to this usb interface or list all available usb interfaces.
-t device, --tty device
Connect to this tty device.
-n host, --network host
Connect to this network host.
COMPATIBILITY OPTIONS
-U uuid, --uuid uuid
Select the UUID to connect with. Recognized values are currently "none" needed by some Nokia mobile devices, "FBS" (default) for the
normal file browsing service, "IRMC" for IRMC synchronisation and "S45" when connecting to a Siemens Mobile phone via cable or
"SHARP" for PCSOFTWARE UUID with Sharp devices.
-H, --noconn
Suppress connection IDs (i.e. send no connection header to the mobile).
-S, --nopath
Don't use "setpath" commands (i.e. send the whole path as filename to the mobile). Can be used together with --noconn and --uuid
none to send an OBEX-PUSH.
SETTING THE FILE PATH
-c folder, --chdir folder
Set the mobiles current working directory.
-C folder, --mkdir folder
Set the mobiles current working directory. The folder will be created if it doesn't exist.
-l folder, --list folder
List a folder.
SENDING AND RETRIEVING FILES
-o path, --output path
Specify the target file name, overriding the implicit local name from --get or the implicit remote name from --put
-g source, --get source
Retrieve files from mobile.
-G source, --getdelete source
Retrieve files from mobile and delete them on the mobile
-p source, --put source
Send files to the mobile.
-k source, --delete source
Delete files from the mobile.
EXPERIMENTAL EXTRAS
-X, --capability
Retrieve the capability object from the mobile (if available).
-Y, --probe
Probe and report device characteristics
-x, --info
Retrieve misc infos from mobile. I.e. memory size and free memory. Siemens specific for now.
-m src dest, --move src dest
Move (rename) files on the mobile. Siemens specific for now.
VERSION INFORMATION AND HELP
-v, --verbose
Be verbose and give some additional infos.
-V, --version
Print version string and exit.
-h, --help, --usage
Print short usage instructions.
EXAMPLES
To get the directory listing from the first irda device
obexftp -i -l or just obexftp -l as IrDA is the default.
To get the file bar from directory foo from the first bluetooth device
obexftp -b -c foo -g bar
To send the file bar to directory foo with device on first serial port
obexftp -t /dev/ttyS0 -c foo -p bar
It is possible to use RfComm (serial port over bluetooth)
obexftp -t /dev/rfcomm0 -c foo -p bar
And also IrComm (serial port over IrDA)
obexftp -t /dev/ircomm0 -c foo -p bar
To send the file bar using plain OBEX PUSH
obexftp --bluetooth --nopath --noconn --uuid none --put bar
SEE ALSO
obexftpd(1), openobex(3), obexftp(3), multicobex(3), libbfb(3).
BUGS
Bugs ? Features !
NOTES
The software has been tested and reported working on at least Siemens, Ericsson, and Nokia phones.
AUTHOR
Christian W. Zuckschwerdt <zany@triq.net>
17 February 2009 obexftp(1)