我想根据magento上的属性值来获取图像。
示例:
Attribute > MyAttribute
Values > Nasa, Google, Linux
Images > Nasa.jpg, Google.jpg, Linux.jpg
Products >
Product Nasa < Get Nasa.jpg if is selected an attribute
Product Google < Get Google.jpg if is selected an attribute
Product Linux < Get Linux.jp
我在前台运行了一个子进程,他的父亲已经离开了。
如果父进程已退出,则proc/$pid/stat文件不再包含父pid,并且它将显示1而不是原始父pid。
linux$cat /proc/6267/stat
6267 (test3.sh) S 1 6265 ......
# ^
# |
# I expected to get the origin parent pid but I get 1
要快速再现这种行为,我们可以使用以下脚本
test2.sh
#!/bin/sh
echo "test2=$$"
我有一个注解脚本设置谷歌铬apt回购。我把谷歌的签名密钥和脚本放在一起(而不是每次都下载),因为我认为它减少了获得恶意密钥的可能性(豆腐安全模型)。
现在关键不再起作用了:
W: GPG error: http://dl.google.com/linux/chrome/deb stable Release:
The following signatures couldn't be verified because the public key
is not available: NO_PUBKEY 78BD65473CB3BD13
E: The repository
我尝试过将oracle-java7-installer包从自定义存储库安装到Ubuntu 12,但在执行一些安装后脚本时失败了。所以。我只想回滚它,然后继续使用另一个解决方案(安装java 7 jdk)。我试着让
用set -x更新
> sudo aptitude remove oracle-java7-installer
The following packages will be REMOVED:
oracle-java7-installer
0 packages upgraded, 0 newly installed, 1 to remove and 47 not upgr
下面是一些代码,如下所示:
Err http://32.repository.backtrack-linux.org/ revolution/main liblaunchpad-integration1 0.1.35
Could not resolve '32.repository.backtrack-linux.org'
Err http://32.repository.backtrack-linux.org/ revolution/main gedit 2.30.3-0ubuntu0.1
Could not resolve '32.repository.ba
我在ffmpeg的./configure脚本中遇到了问题。我的linux环境使用busybox,它只允许有限的linux命令集。在ffmpeg ./configure脚本中使用的一个命令是mktemp -u,这里的问题是linux的busybox不承认-u开关是有效的,因此它抱怨它并破坏了配置过程。
这是./configure中使用mktemp -u命令的相关代码:
if ! check_cmd type mktemp; then
# simple replacement for missing mktemp
# NOT SAFE FOR GENERAL USE
mkt