Tag Info

New answers tagged

0

As above but: read -p "Where is the file?" FILENAME Instead of echoing the question and then reading the variable, might be neater.


1

Try this. $ cat foo.sh #!/bin/sh echo Where is the file read FILENAME echo now reading ${FILENAME} cat ${FILENAME} $ ./foo.sh Where is the file /etc/fedora-release now reading /etc/fedora-release Fedora release 20 (Heisenbug) $


2

There is a tool called logrotate read the manual page man logrotate it is started by cron and probably already cleaning the log directory you can add your own configurataion files to /etc/logrotate.d


1

About CJK input without X. You must first enable the display of multi-byte characters on the console. Maybe it would be possible in fbterm. To I guess(I do not have the experience of Chinese input), Chinese input might be possible in the uim + uim-fep + uim-chewing. Alternatively, you can use the extension of the editor (emacs, vim).


1

I can answer part of my own question: Yes, one can start X from within the chroot'ed environment. I just found the following gentoo wiki page: http://www.gentoo-wiki.info/HOWTO_startx_in_a_chroot So now I know it's theoretically possible. So if I manage to run KDE from the chroot'ed system, I'd be able to test Chinese input further... Also, this answer ...


0

It is working now, but I changed the script to: #!/usr/bin/expect -f set timeout 15 set user "myusername" set server "x.x.x.x" spawn ssh -l $user -p AAAA $server expect "myusername@x.x.x.x's password: " { send "the password\r" } interact


1

Use input from a file: ./your_script.sh < your_file_with_four_lines_of_input or use a here document: ./your_script.sh << EOF daveis.com 5.196.24.211 yes noreply@daveis.com EOF



Top 50 recent answers are included